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 %]
In reply to hash of a hash into template toolkit? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |