Re: [htmltmpl] H::T chunking of templates
Brought to you by:
samtregar
From: Pete P. <pet...@cy...> - 2004-03-10 21:10:41
|
>>Ah, now I see. I read the text you wrote instead of the regex because, >>you know, I'm not a regex engine. ;) >> >>Of course *had* I properly read the regex you wrote, I would have >>figured it out. > > > :-) > > >>Couldn't you use a case-insensitive match though to avoid the >>[Tt][Mm][Pp][Ll] part? > > > yep - but it would probably be about 10 times slower, as m//i makes a copy of the input string. > > There are a number of places on the web which document this fact - until the perl regex engine gets smarter, then the [...] syntax is the best way to go Well, gee - you learn something new everyday! - Thanks! Pete |