Re: Nested templates
Mathew Robertson <[email protected]> Wed, 25 Nov 2009 13:48:26 +1100
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Organization | Nielsen//NetRatings |
| Message-ID | <[email protected]> |
<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
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july