|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: fixing what textareas do to inputby Zoogie (Curate) |
| on Jun 05, 2000 at 08:42 UTC ( #16360=note: print w/ replies, xml ) | Need Help?? |
|
Perhaps: $data =~ s/(\r\n|\n\r|\r)/\n/g This converts CR's, LF's, and any combination of the two into a single newline (I hope... haven't tested it).
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||