[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Help with [loop list=,please.
Quoting Tim Nelson (TNELSON@ECS-INC.com):
> 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]
>
That wasn't added until 4.6.1 -- or at least I thought it was
added. Sometimes I get confused. It is in CVS.
--
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>
Friends don't let friends use Outlook. -- Bob Blaylock
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users