On Wed, 6 Aug 2003, Edward Tsai wrote:
> i currently have an array of hashes
>
> @logins
>
> where I can access elements like:
>
> print $logins[0]->{'login_name'};
>
> i've set one of my vars
>
> vars->$logins = @logins;
This should be:
$vars->{logins} = [EMAIL PROTECTED];
> I'm trying to print it out in my template
>
> <ul>
> [% FOREACH person = logins %]
> <li> loginname is [% person %]
and then this should probably be:
<li> loginname is [% person.login_name %]
> [% END %]
> </ul>
>
> but i get the array size (2) (for two logins) - what
> should I change? The hash name for each element in the
> array is "login_name".
>
> Thank you.
>
> -Edward
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> _______________________________________________
> templates mailing list
> [EMAIL PROTECTED]
> http://lists.template-toolkit.org/mailman/listinfo/templates
>
Dave
/L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\
Dave Cash Power to the People!
Frolicking in Fields of Garlic Right On-Line!
[EMAIL PROTECTED] Dig it all.
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates