Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my @domains; while (my $row = $sth->fetchrow_hashref) { %aaa = %$row; #deref push @domains, $aaa; print $aaa{'subdomain'} . "\n"; #returns www } print @domains[0]{'subdomain'} . "\n"; #doesn't work ?? $template->param( DOMAINS => @domains #Doesn't work either # example from the manual goes as follows: #$template->param(EMPLOYEE_INFO => [ # { name => 'Sam', job => 'programmer' }, # { name => 'Steve', job => 'soda jerk' }, # ] # ); print $template->output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: I really need help with perl data structures and HTML::Template
by lhoward (Vicar) on May 29, 2000 at 00:31 UTC | |
|
Re: I really need help with perl data structures and HTML::Template
by lhoward (Vicar) on May 29, 2000 at 02:25 UTC | |
|
Re: I really need help with perl data structures and HTML::Template
by perlmonkey (Hermit) on May 29, 2000 at 01:31 UTC |