env(1)
#!/usr/bin/env perl
For odd embedded systems where env is not in /usr/bin/env (E.g. NAS boxes running funplug etc) this might work. Based on the ActivePerl / DOS trick
#!/bin/shexec perl -x -S "$0" "$@"#!perlprint "hello";