in reply to substitute an enter with regular expressions

Here's a quick one (untested):
my $char = '<BR>'; s/\n/$char/g;

Mick