in reply to Remove Carriage Return

The same way you remove it anywhere else in a string. s/\r// will get rid of ONE carriage return. tr/\r//d will get rid of ALL of them (more efficiently than s/\r+//g would).

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart