in reply to Re: Re: Replacing line returns with br
in thread Replacing line returns with br

> $text =~ s/\n/<br>/g;
This is the expression I use as well. Replacing just the \n assures it works well even if there are no \r around (Unix environment). If there are (Windoze or MAC) I think they can just stay there, but one could get rid of them using:
$text =~ s/\r//g;