in reply to Template Toolkit and unpredictable hashrefs

From what I can tell from the docs,
[% FOREACH ip = data %] this is ip [% ip %] counter is [% ip.counter %] [% END %]
should be
[% FOREACH ip = data %] this is ip [% ip.key %] counter is [% ip.value.counter %] [% END %]

Replies are listed 'Best First'.
Re^2: Template Toolkit and unpredictable hashrefs
by rastoboy (Monk) on Mar 29, 2010 at 02:05 UTC
    Dude. That is awesome, yes. Can you please link me to the particular docs you're looking at? I have actually been reading lots of docs and I haven't seen/perceived this syntax. Thank you so much, that worked great!
        Good Lord, I was looking in all the wrong places, and on that very page.

        Okay, I'm going to sit and read all the docs on this tonight before I go any further with my project.

        Thanks again. /me is chastened.