At 07:35 AM 10/27/01 -0700, Craig Barratt wrote:
>It just occurred to me that your $stash->set is not correct.
>
>> $stash->set( ['sections', $count ], { href => $jump, text => $tag } );
>
>This should be:
>
> $stash->set( ['sections', 0, $count, 0 ], { href => $jump, text =>
$tag } );
>
>or more simply,
>
> $stash->set( "sections.$count", { href => $jump, text => $tag } );
Thanks very much! I misread the Template::Stash doc.
As you said before, I now need
[% sections = [] %]
in my template that contains the WRAPPER. I'd like to understand why a
simple stash set ( $stash->set('foo', 'baz') ) works, but I need to
pre-define the array.
Bill Moseley
mailto:[EMAIL PROTECTED]