Re: Nested templates

Brad Baxter <[email protected]> Mon, 30 Nov 2009 11:41:42 -0500
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Yes, that's better.  It replaces a copy and compare (and
extra loop) as you say with a regx match.  I still have
a copy, object creation, and repeated param settings that
bother me, but I suspect this is the best I'm going to get
without a significant change to H::T.

Thanks,

Brad

On Tue, Nov 24, 2009 at 9:48 PM, Mathew Robertson
<[email protected]> wrote:
> <snip>
>
> that seems somewhat complicated - you could use a regex in the while loop,
> as in:
>
> while ($text =3D~ /<TMPL_/) { ... }
>
> instead of using a loop variable or breaking out of the loop. =A0In parti=
cular
> it would save you having to do any string comparisons and would avoid the
> extra loop iteration.
>
> Mathew Robertson
>
>



-- =

Brad Baxter
----------------------------------------------------------------------

---------------------------------------------------------------------------=
---
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