http://www.perlmonks.org?node_id=281679


in reply to Text from a form to MySQL

print "<pre>$text_from_db</pre>";

Should give you the same formating as the original. Of course I am making the assumption that this is for a web page.