in reply to Re^4: Global variables in Perl
in thread Global variables in Perl
It could be that you're not executing the script you think you are executing, or you're not using the module you think you are using.
Please provide the output of the following:
perl -wle'use ConfigThisJunk; print $INC{"ConfigThisJunk.pm"};' cat ConfigThisJunk.pm # Or whatever the previous line printed cat script.pl # Or whatever your script is called. perl script.pl # Or whatever your script is called.
Or on a Windows build:
perl -wle"use ConfigThisJunk; print $INC{'ConfigThisJunk.pm'};" type ConfigThisJunk.pm # Or whatever the previous line printed type script.pl # Or whatever your script is called. perl script.pl # Or whatever your script is called.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Global variables in Perl
by taioba (Acolyte) on Jun 04, 2010 at 21:46 UTC | |
by ikegami (Patriarch) on Jun 04, 2010 at 21:51 UTC | |
by taioba (Acolyte) on Jun 04, 2010 at 22:08 UTC | |
by taioba (Acolyte) on Jun 04, 2010 at 22:25 UTC |