Try
$text =~ s/\r\n/<br>/; Instead of escaping the \r\n you were
escaping the slash \\r...
-Lord Avatar
"A simple truth is but a complicated lie..." -Nietzche
In reply to Re: Replacing line returns with br
by LordAvatar
in thread Replacing line returns with br
by dpatrick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |