How do I stop Eclipse (EPIC Perl) from adding DOS CR/LF to my Perl scripts?
I just stumbled upon an easy way of fixing these problems when you run into someone else's code that has them.
In Eclipse Kepler (and later), use the menu item File > Convert Line Delimiters To
.
In previous versions of Eclipse, you have to user Source > Format.
It'll reformat the code, which includes replacing CR/LFs with LFs.