http://www.perlmonks.org?node_id=11104328


in reply to Re^10: Querying program port
in thread Querying program port

bad interpreter: No such file or directory.

Had you searched for this you'd have found out that you've got a carriage return on the end of the shebang line. dos2unix will help.