> On Tuesday 03 April 2001 01:42, you wrote:
> > Hello
> >
> > In PHP there is an instruction : nl2br .
> > Does anybody know if there is something similar in Perl???
> 
> Well, you'd think Perl experts would know this a bit better that PHP 
> experts, hm?

$string =~ s/\n/<br>\n/g

-James
--  
James Moore
[EMAIL PROTECTED]
PHP Web Scripting: http://www.php.net/
PHP QA Team: http://qa.php.net/
PHP-GTK: http://gtk.php.net/
VL-SRM: http://www.vl-srm.net/ 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to