in reply to Perl Polyglot Problem

I realize this doesn't answer your question (PodMaster seems to be doing a good job of that), but you might want to take a look at PAR for distribution of scripts. It will let you compile a standalone executable with everything the script needs to run included inside. HTH