in reply to Auto shebang hacking
in thread How do I change the shebang line for all perl scripts in a directory

Check the only entry in my CPAN directory for my script that does shell-to-Perl translation. It shows how to hack the shebang line during installation, and also shows tests for the script.

-- Randal L. Schwartz, Perl hacker