in reply to Replacing line returns with br

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