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
<mathew.robert...@netratings.com.au> wrote:
> <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
>
>



-- 
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
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to