in reply to Re^4: 'do' command is dead? Surely not?
in thread 'do' command is dead? Surely not?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: 'do' command is dead? Surely not?
by ACI (Acolyte) on May 19, 2017 at 15:08 UTC | |
by Corion (Patriarch) on May 19, 2017 at 17:13 UTC | |
|
Re^6: 'do' command is dead? Surely not?
by ACI (Acolyte) on May 19, 2017 at 15:03 UTC |