in reply to Use ExtUtils::MakeMaker to install scripts
in thread shebang line - foreign to me

Exactly. This is why for all Perl scripts I'm going to distrubute on other systems I use ExtUtils::MakeMaker which does such patching automatically.
Either that's a recent feature (and therefore not portable), or hasn't been documented.

Where did you find out about this?

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