Keep It Simple, Stupid | |
PerlMonks |
Re^2: How to remove a carriage return (\r\n)by tilly (Archbishop) |
on Nov 01, 2005 at 16:30 UTC ( [id://504637]=note: print w/replies, xml ) | Need Help?? |
I prefer $key =~ s/\r?\n/ so it will handle either style of linefeed, whether your code is running on either Windows or Unix. (On Windows, if binmode is off, you get what look like Unix linefeeds out of Windows linefeeds.)
In Section
Seekers of Perl Wisdom
|
|