#!/bin/sh -- # -*- perl -*- -p eval 'exec perl -wS $0 ${1+"$@"}' if $running_under_some_shell;
Both the above and the env trick are discussed in perldoc perlrun.
In reply to letting the shell figure it out
by Fletch
in thread Portable Shebang
by stefan k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |