![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re^9: replicating the command 'unset LIBPATH' in perlby viffer (Beadle) |
on May 19, 2010 at 06:33 UTC ( #840621=note: print w/replies, xml ) | Need Help?? |
OK - so __FILE__ is the name of my script, but I will admit to not understanding what you're trying to do with it. When I run your version of the BEGIN code, I get where lines 68 and 73 are: It isn't __FILE__ that is the uninitialized value (as I put a print command in), so presumably its the "$ENV{ +__FILE__ }" but I can't manage to print that to check - and being in a BEGIN statement I can't step through it in debug. Also, in both versions the script just ends (as opposed to terminating with an error). Maybe I should be a heretic and go back to using COBOL on a mainframe! Do any still exist? Cheers Kev
In Section
Seekers of Perl Wisdom
|
|