You can't use $_ in a <TMPL_LOOP>, but you can use map to turn a flat list into a list of hashes:
'sub_sections' => [ map {{ 'sub_section_name' => $_ }} 'Foo part 1', 'Foo part 2', 'Fo +o part 3' ],
--bwana147
In reply to Re: Re: Nested HTML::Template Loops
by bwana147
in thread Nested HTML::Template Loops
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |