Re: [htmltmpl] H::T filters
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2004-02-12 01:34:34
|
> --Use of $_ should be avoided in modules. It's easy to screw up the=20 > localization and clobber existing values of $_ in code higher up. = This can=20 > be solved either by using a regular variable, or by explicitly = localizing it. done > --When you create the string used to match tags, it will be faster to = wrap=20 > it in a qr// instead of a simple string. This will cause perl to = compile=20 > the regex once instead of repeatedly compiling it at runtime whenever = the=20 > string is interpolating into the s///. done In the process, I found: - a bug or two in the TMPL_SET code - I changed the way regex's work for case sensitivity, which should = result in faster regex parsing. cheers, Mathew |