in reply to Portable Shebang
#!/bin/sh -- # -*- perl -*- -p eval 'exec perl -wS $0 ${1+"$@"}' if $running_under_some_shell; [download]
Both the above and the env trick are discussed in perldoc perlrun.