You need to specifyt the full path to perl, since $ENV{PATH} isn't used in this circumstance. You could use #!/usr/bin/env perl to search using $ENV{PATH}. (Note: I hear that path to env (/usr/bin) is not the same on all systems, rendering it somewhat useless.)
Update: Clarified to avoid confusion of between a file's path and the environment variable.
In reply to Re: #!perl Question
by ikegami
in thread #!perl Question
by crusty_collins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |