in reply to Replacing line returns with br

This worked for me, assuming that I understood your problem properly:
$_ =~ s/$\//<br>$\//g;