Tim Keefer wrote:
I'm having trouble accessing the hash value when I'm combining items to create the hash key. I'm hoping there's a better way to do this.

[% FOREACH num IN [ 1, 2, 3, 4, 5 ] %]
   [% box_key = ( 'box_' _ num ) %]
   [% name  = hash.$box_key.name %]
   [% phone = hash.$box_key.phone %]
[% END %]

Hi Tim,

That is correct format, and should work fine. If this is not working for you, 
then there may be something wrong with your hash. We'd need more info in that 
case.

-- Josh

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to