Do you know where your variables are? | |
PerlMonks |
Re^4: 'do' command is dead? Surely not?by davido (Cardinal) |
on May 19, 2017 at 14:38 UTC ( [id://1190628]=note: print w/replies, xml ) | Need Help?? |
Recent versions of Perl (v5.24.1+) removed '.' from @INC, so this is probably right on the mark. If the OP is using a recent enough Perl version it will not look in the dot path unless something like this happens:
Though that is subject to the challenges that the dot path has always faced. It would be better to do something like this:
This eliminates sensitivity to where the script was invoked from. See also: FindBin, lib, and perl5241delta. Dave
In Section
Seekers of Perl Wisdom
|
|