http://www.perlmonks.org?node_id=1098801


in reply to Re: RFC Using PERL HEREDOC script within bash
in thread RFC Using PERL HEREDOC script within bash

put #/usr/bin/perl right there on the “shebang” line

I think #!/usr/bin/perl will work better...