Directly from the Camel book, 3rd edition, page 488:
#!/bin/sh -- -*- perl -*- -p eval 'exec perl -S $0 ${1+"$@"}' if 0 ;
That is: run a (shell) eval and let the shell execute perl wherever it is in your $PATH
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz
In reply to Re: portable interpreter invocation
by bronto
in thread portable interpreter invocation
by markcsmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |