in reply to Removing carriage returns from source code

How about:
perl -pi.bak -e 's/\r\n/\n/g' myfile.pl perl -pi.bak2 -e 's/\r/\n/g' myfile.pl
This will translate both Mac EOLs and MS EOLs into Unix like ones.

-Blake

Replies are listed 'Best First'.
Re: Answer: Removing carriage returns from source code
by Anonymous Monk on Aug 07, 2003 at 10:46 UTC
    Where is the answer here?I'm unable to find anywhere.
Re: Answer: Removing carriage returns from source code
by Anonymous Monk on Aug 07, 2003 at 10:46 UTC
    Where is the answer here?I'm unable to find anywhere. Sateesh.. My mailid:sateesh_7@rediffmail.com