in reply to ASCII in regex
You need to escape the <BR> tags in your post, otherwise they don't get displayed. Replace the opening < with <.
As for your question, you should be able to do something like:
$text =~ s/\n/<BR>/g; [download]