Roee Rubin <[EMAIL PROTECTED]> wrote:

> # sub. attempted
> $biography =~ s/\n/<br>/g;
> 
> 
> <snip - after replace>
> 
> <br>too much. t ignoring technology stocks could be as dangerous
> to your portfolio as buying ite
> 
> </snip>

I think that's what you see when you print the line to the 
screen, because you've got carriage returns in there causing 
the lines to overwrite each other.  It should still work in an 
HTML page, but it would be better to get rid of the carriage 
returns:

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

It's nice to leave a newline after the <br>, also, so your HTML 
doesn't end up as one long line when you view the source.

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to