Hi,

You could try:

$biography =~ s/\n/<br>/g;

(i.e. global replace)

-Gert

-----Original Message-----
From: Roee Rubin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 4:10 PM
To: 'Perl-Win32-Web
Subject: link breaks and html


Hello,

I have the following text in the DB (mysql) ...

<snip>

This three-way clash of the consoles is certain to enthrall video game fans
since the competition will likely heighten the quality of all the products
and keep each company on its toes.

However, is there enough room in the market for these different machines?

</snip>

Whenever printed in the command line the line breaks are in place. I attempt
to print to print the same data to an html page and the line breaks do not
appear. I have tried substituing <br> for \n and \r to no avail.

$biography =~ s/\r/<br> /;
$biography =~ s/\n/<br> /;

Any help will be appreciated.

Thanks.

Roee Rubin
[EMAIL PROTECTED]
http://www.irubin.com/


_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to