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


in reply to /usr/bin/perl^M: bad interpreter:

The comments on that page mention that same error. The resolution provided is to run the dos2unix /usr/local/bin/sr_server.dat command.

Windows and Unix systems use different end-of-line characters. The ^M bit you're seeing is from a Windows system, and isn't needed on the Unix system.

Replies are listed 'Best First'.
Re^2: /usr/bin/perl^M: bad interpreter:
by Anonymous Monk on Feb 17, 2010 at 03:44 UTC
    Thanks for the dos2unix tip as it solved a problem for me.