Friday, April 11, 2008

perl bad interpreter: No such file or directory..windows EOL characters

This problem happens when editing scripts on a windows based system then FTP'ing them to unix/linux boxes.
This simple Perl command always seems to clear up the problem. Try the following command on your text file then try and run it.

perl -i -pe's/\r$//;'

No comments: