On 5/11/2010 12:26 PM, E R wrote:
> Hi,
>
> If you are running TT2 with INTERPOLATE =>  0, is there another way to
> do the following:
>
> hash = {}
> ...
> key = ...
> ...
> hash.$key = ...
>
> i.e., access a hash with a key which is stored in a TT variable?

hash.item(key) would be another way to do hash.$key.

-- Josh

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

Reply via email to