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


in reply to CTRL M characters ?

I'm guessing that you're on a Windows machine... and I think you're looking for this node:

Re: Removing Carriage returns from text files

Good luck!