>$string =~ s/\n/<br>/g; > >...It works fine on UNIX, but not with MacPerl. The kind of linebreaks you get from <textarea> tags vary with different browsers and platforms. I use the following method to deal with this. $string =~ s/\015\012/\n/g; # First change CRLF's, if any $string =~ s/\012/\n/g; # Change LF's $string =~ s/\015/\n/g; # Change CR's $string =~ s/\n/<br>/g; # now you should be OK using \n -Dave