#!/path/to/perl/used/to/install/bin/perl eval 'exec /path/to/perl/used/to/install/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell ...[ script contents here ]...