On Thu, 27 Mar 2003, Brian McCain wrote:
> I know I can retrieve the value of a param using:
> my $value = $template->param('PARAM');
>
> ...and that I can retrieve the type of a var (named 'BEE' in this case)
> inside a loop (named 'EXAMPLE_LOOP' in this case) like so:
> $type = $template->query(name => ['EXAMPLE_LOOP', 'BEE']);
>
> ...but how would I go about getting the value of a variable inside a loop
> using either param() or query()?
When you call param() on a loop variable you'll get back the array-ref
that you set the loop with. You can iterate through this array of
hashes and pull out whatever information you want. Give it a try and
if you get stuck, post again with some code.
-sam
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users