in reply to Converting DOS perl to Unix

Look in the snippets section. Particularly, look at Remove the ^M Character from a Document.

--ZZamboni