in reply to #!perl Question
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: #!perl Question
by itub (Priest) on Oct 03, 2005 at 18:52 UTC | |
|
Re^2: #!perl Question
by perrin (Chancellor) on Oct 03, 2005 at 18:18 UTC | |
|
Re^2: #!perl Question
by thor (Priest) on Oct 03, 2005 at 18:19 UTC | |
by ikegami (Patriarch) on Oct 03, 2005 at 18:23 UTC | |
by crusty_collins (Friar) on Oct 03, 2005 at 18:45 UTC |