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


in reply to She-bang confusion

In vim type :se ff=unix and then save the file.

=) dos endings are going to drive you nuts till you learn to move files with ftp and text mode rather than binary mode.

Or in perl you can fix the file with perl -pi.bak -e 's/\r\n/\n/'

--
$you = new YOU;
honk() if $you->love(perl)