|
|
| There's more than one way to do things | |
| PerlMonks |
Re: fixing what textareas do to inputby Zoogie (Curate) |
| on Jun 05, 2000 at 04:42 UTC ( [id://16360]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||||