You can also cheat:
use CGI; my $html_break = CGI->br; $message =~ s/\Q\r\n\E/$html_break/g;
Not sure if that does what you want, but it's worth a shot.
In reply to Re: Converting carriage returns to HTML breaks
by thomas895
in thread Converting carriage returns to HTML breaks
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |