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.
In reply to Re: Execute a Perl code without ".pl" extension
by izut
in thread Execute a Perl code without ".pl" extension
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |