in reply to Problem displaying text with CGI

$text =~ s/\n/<br>/g;
perhaps? That might work better if the wrapping is set to "virtual"...

- Zoogie