http://qs1969.pair.com?node_id=509473


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