Greetings HTTP-404,
I don't know what OS you're using, but if you're using Win32, you may need to compensate for the line feed added character. The following might help:
$post =~ s/^\r*\n$/<br>/g;-gryphon
code('Perl') || die;
In reply to Re: Replace new line char with br
by gryphon
in thread Replace new line char with br
by HTTP-404
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |