in reply to Iterating over hash of arrays in Template Toolkit

In the innermost loop of the template, choice takes on the value of each of the list elements, but you're using it as an index instead. Try this:

[% FOREACH choice IN data.$type.$company.$name.choice_list %] [% choice %]<br> [% END %]

Replies are listed 'Best First'.
Re^2: Iterating over hash of arrays in Template Toolkit
by punch_card_don (Curate) on Apr 10, 2007 at 16:08 UTC
    Great minds think alike - you beat me to it by the time it took me to type it -thanks.




    Forget that fear of gravity,
    Get a little savagery in your life.