in reply to Execute a Perl code without ".pl" extension
I always put the following
#!/usr/bin/env perl
instead other common shebang (#!) lines. It will call env(1) and then execute perl from environment (looking in /bin, /usr/bin, etc.).
Update: As Anonymous Monk said, the correct canonical path is /usr/bin/env.
Igor 'izut' Sutton
your code, your rules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Execute a Perl code without ".pl" extension
by wazoox (Prior) on Mar 10, 2006 at 11:24 UTC | |
by izut (Chaplain) on Mar 10, 2006 at 11:45 UTC | |
by wazoox (Prior) on Mar 10, 2006 at 12:12 UTC | |
by izut (Chaplain) on Mar 10, 2006 at 12:44 UTC | |
by wazoox (Prior) on Mar 10, 2006 at 12:48 UTC | |
|
Re^2: Execute a Perl code without ".pl" extension
by Anonymous Monk on Mar 10, 2006 at 19:14 UTC |