in reply to Iterating over hash of arrays in Template Toolkit

I think you've run into a zero offset vs. one offset. Your choice list is 1-6, perl numbers the array 0-5.

Phil

The Gantry Book is now available.
  • Comment on Re: Iterating over hash of arrays in Template Toolkit

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 15:50 UTC
    You mean a Template Toolkit "FOREACH" iterates over an array counting from 1, whereas Perl does it counting from 0?




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