Question : nl2br in Perl? - Need to format output and add newlines

Experts,

I am outputting a longtext field from my db to html.  I need to show line breaks as the output is one continuous string.

I know in PHP you can use nl2br which adds
however I cant find a function in Perl to do this.

Please help.

Answer : nl2br in Perl? - Need to format output and add newlines

sorry missed a slash...

$longTextFile =~ s/\n/
/g;
Random Solutions  
 
programming4us programming4us