[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: [BUG REPORT] WML 2.0.6, SunOS Release 5.8 - Solaris 8



On Sun, Jun 17, 2001 at 10:01:07PM +0200, Axel Beckert wrote:
> Denis Barbier wrote:
> > i applied the following patch:
> > +++ wml_backend/p7_htmlfix/htmlfix.src  2001/05/25 20:03:47     1.16
> > @@ -253,7 +253,7 @@
> >  sub Fixup_center {
> >      &verbose("replacing <center>..</center> by <div align=center>..</div>");
> >  
> > -    $buffer =~ s|<[cC][eE][nN][tT][eE][rR]>|<div align="center">|g;
> > +    $buffer =~ s|<[cC][eE][nN][tT][eE][rR](\s[^>]*)?>|<div align="center"$1>|g;
> >      $buffer =~ s|</[cC][eE][nN][tT][eE][rR]>|</div>|g;
> >  }
> 
> Just being curious: Why using 
> 
>    $buffer =~ s|<[cC][eE][nN][tT][eE][rR]>|<div align="center">|g;
> 
> instead of
> 
>    $buffer =~ s|<center>|<div align="center">|gi;
>                                                ^
> ?
> 
> Any performance reasons?

Yes, but i am not sure it makes any difference with current Perl
versions.

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com