Try this:
$text =~ s/\r//g; $text =~ s/\n/<br \/>/g;
Why not just:
$text =~ s!\r?\n!<br />!g;
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>