Re: Setting options after new()
Cody Fendant <[email protected]> Sat, 24 Apr 2010 14:47:27 +1000
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
> loop_context_vars is pretty cheap so just use them, > global_vars can be expensive if you have lots of loops and sub-loops and > sub-sub-loops, etc. with big pages. Fair enough. I don't have any kind of nested loop, it's all fairly simple. > ...if it doesn't work and its not documented, then dont do that. Or just > create a H::T when you actually want to use it... To be honest, my code probably needs rethinking, it works like 1) Determine run-mode 2) Create H::T and using the template file for that run-mode 3) Lots of other more complicated stuff dependent on conditions So yes, it could probably go another way. ------------------------------------------------------------------------------