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