go ahead... be a heretic | |
PerlMonks |
Re (tilly) 1: Removing Carriage returns from text filesby tilly (Archbishop) |
on Oct 17, 2001 at 23:38 UTC ( [id://119525]=note: print w/replies, xml ) | Need Help?? |
This is from memory, without a machine to test it on.
UPDATE Erk, the above doesn't work. You could do it like this: or probably like this: The idea being that you are reading in with the usual \r\n to \n conversion, and then you print out without that conversion. (Thereby dropping the "\r".)
In Section
Seekers of Perl Wisdom
|
|