Re: [htmltmpl] Nested templates
Brought to you by:
samtregar
From: Mathew R. <mat...@ne...> - 2009-11-25 03:15:34
|
<snip> that seems somewhat complicated - you could use a regex in the while loop, as in: while ($text =~ /<TMPL_/) { ... } instead of using a loop variable or breaking out of the loop. In particular it would save you having to do any string comparisons and would avoid the extra loop iteration. Mathew Robertson |