CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Inconsistent Undefined subroutine error for cwd

 



tharpa
Novice

Jul 22, 2016, 9:03 AM

Post #1 of 1 (1137 views)
Inconsistent Undefined subroutine error for cwd Can't Post

I am getting a message, "Undefined subroutine &compression_dev::cwd called at ..." for this line

Code
my $cwd = cwd();

. I have a

Code
use Cwd;

at the top of the file. What it makes even stranger is that I have that same line in other places in the same file (different subroutine) but it is working correctly.

Any thoughts?
***************
Well, I don't know why it wasn't working, but I found a work-around:

Code
my $curwd = Cwd::abs_path();



(This post was edited by tharpa on Jul 22, 2016, 10:23 AM)

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives