I need to replace all the new line characters with a <br> or something else so that my datafile stays one order per line.

replace \n with <br>



$content=~tr/\n/<br>/;