Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Template toolkit codeforeach my $i (keys %results){ print "rule_id - $i\n"; foreach my $k (keys %{$results{$i}}){ print "$k -> $results{$i}->{$k}\n"; } print "----------------------------------\n"; } $self->process_template( template => $login_template, data => { resu +lts => \%results});
[% FOREACH r = results %] [% r %] <---- this prints out a hash [% END %]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash of a hash into template toolkit?
by DamnDirtyApe (Curate) on Jul 04, 2002 at 00:57 UTC |