in reply to Re: Simple Question for you guys.
in thread converting carriage returns to <br> tags (was: Simple Question for you guys)

If the textarea is returned with \r\n line endings, then that substitution will insert two <BR /> tags at the end of each line.

I prefer something like this: $textarea =~ s,\r\n?|\n\r?,<br />\n,g; I like to keep a newline after the BR tag, to make the HTML easier to read.