Re: fixing what textareas do to input
Jun 05, 2000 at 08:42 UTC
in reply to
fixing what textareas do to input
$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).
Seekers of Perl Wisdom