![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: TMPL_LOOP inside another TMPL_LOOP with HTML::Templateby saberworks (Curate) |
on Nov 17, 2005 at 17:06 UTC ( #509473=note: print w/replies, xml ) | Need Help?? |
If you are wanting to loop over something in a completely separate array on each iteration of another array, you will need to enable globals. HTML::Template otherwise masks external variables from the guts of each <TMPL_LOOP>. We have run into problems with this if the variables use the same names or even the same keys, so be careful. You can turn on globals with an option passed into the new() method:
global_vars => 1
In Section
Seekers of Perl Wisdom
|
|