[ic] Help with [loop list=,please.

Tim Nelson TNELSON@ECS-INC.com
Fri, 2 Feb 2001 15:47:06 -0500


Hi,

I am tring to get the [loop] tag to work with a list provided as a array
reference.

Here is the code:   (It produces output of    ARRAY(blah,blah) instead of
the actual list)

[calc]
     # Make a structure
     my @ary = (
                  [
                    [ qw/key1 val1a  val1b/ ],
                    [ qw/key2 val2a  val2b/ ],
                    [ qw/key3 val3a  val3b/ ],
                    [ qw/key4 val4a  val4b/ ]
                 ]
               );
     $Scratch->{ary} = \@ary;
     return;
 [/calc]
 [loop list=`$Scratch->{ary}` more=1 ml=2]
 [list]
 [loop-code] [loop-pos 1] [loop-pos 2]<BR>
 [/list]
 [more-list]
     More matches: [more]
 [/more-list]
 [/loop]

Thanks.