Perhaps something like this:
use CGI::Simple; my $q = CGI::Simple->new(); my $txtarea = $q->param('usrInput'); $txtarea = '' unless( defined($txtarea) ); $txtarea =~ s#\r+##g; $txtarea =~ s#\n{2,}#<br />\n#g;
In reply to Re: Removing extra carriage returns...
by Anonymous Monk
in thread Removing extra carriage returns...
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |