$text =~ s/\n/<br>/g; [download]
In reply to Re: Re: Replacing line returns with br by screamingeagle in thread Replacing line returns with br by dpatrick