in reply to Shebang to a perl program

Shebang works only with real binaries, not scripts. You can't nest shebangs.

You could use PAR to turn your script into an executable, though. It seems to be working even under OS X now.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.