Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: TMPL_LOOP inside another TMPL_LOOP with HTML::Template

by saberworks (Curate)
on Nov 17, 2005 at 17:06 UTC ( #509473=note: print w/replies, xml ) Need Help??


in reply to TMPL_LOOP inside another TMPL_LOOP with HTML::Template

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://509473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2020-02-17 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (71 votes). Check out past polls.

    Notices?