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

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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2022-05-18 02:53 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.