Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Iterating over hash of arrays in Template Toolkit

by philcrow (Priest)
on Apr 10, 2007 at 15:46 UTC ( [id://609180]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://609180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-26 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found