On Mon, Apr 29, 2002 at 03:27:09PM +0100, Johnson Colin (KnowledgePool) wrote:
> If I try to build an array called mylist like this (and I might want to do
> this if mylist has already got some elements on it that I want to push on)
>
> [%- mylist = [] -%]
> [%- counter = 0 -%]
> [%- list_string = 'element1;element2;element3' -%]
> [%- FOREACH val = list_string.split(';') -%]
> data[[% val %]] [[% counter %]]
> [% mylist.$counter = val -%]
^^^^^^^^^^^^^^^
Try this instead:
[% mylist.push(val) %]
HTH
A