You are probably looking for /g, substitute globally. Your example will only get the first \r and \n in $blah. Just use something like this which will also handle DOS style returns
$blah =~ s/\r?\n/<br>/g;
In reply to Re: catching \n
by tedrek
in thread catching \n
by TheDoc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |