in reply to catching \n

If you don't mind having multiple consecutive line breaks (i.e. empty lines) collapsed into a single <br> tag, you could do:
$blah =~ s/[\r\n]+/<br>/g;
(Just because I don't recall off-hand...
I'd like to test whether there's visible difference...

between single and double <br> tags...
Yup, there is.)