P is for Practical | |
PerlMonks |
Re^5: 'do' command is dead? Surely not?by Corion (Patriarch) |
on May 19, 2017 at 14:53 UTC ( [id://1190634]=note: print w/replies, xml ) | Need Help?? |
You don't show us the output of the file existence tests. Maybe the filename has whitespace at its end. If -f 'whatever.pl' fails, then for sure, Perl cannot see that file, for whatever reason. Also, the interesting variable is @INC, not %INC. You can also check if do './whatever.pl' works for you. That would also work around the problem of . not being in @INC. You can also check if do '/home/Andy/Desktop/whatever.pl' works for you. That would also work around the problem of . not being in @INC.
In Section
Seekers of Perl Wisdom
|
|