I am not sure if what you wrote would actually work or not, To my knowledge ... Template Toolkit foreach loops should be written as [% FOREACH x IN shopping %] Then you can use x.key to do what you want.
As I know Template Toolkit doesn't accept +=
In reply to Re: Template toolkit Adding Values to Variable
by ahmad
in thread Template toolkit Adding Values to Variable
by seekperlwisdom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |