in reply to bad interpreter: No such file or directory
Check for control characters on the end of the lines - normally caused by copying scripts from one platform to another without correcting the line endings.
If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.
In Section
Seekers of Perl Wisdom