Gunnar Hjalmarsson wrote:
Jupiterhost.Net wrote:
Try this:
$text =~ s/\r//g; $text =~ s/\n/<br \/>/g;
Why not just:
$text =~ s!\r?\n!<br />!g;
That'll work fine,
I've just seen that do unexpected things with lines before so I like to kill the \r completely so the output is more predictable.
It really doesn't matter much either way
Lee.M - JupiterHost.Net
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
