in reply to substitute an enter with regular expressions
my $char = '<BR>'; s/\n/$char/g; [download]