in reply to hash of a hash into template toolkit?

[% FOREACH r = results %] [% r %] <---- this prints out a hash [% END %]

That's because r is a hash reference. If you want to show data in r, you need to say something like

[% FOREACH r = results %] [% r.foo %] and [% r.bar %] [% END %]

Read all about it in the Template Toolkit's manual, section on Hash Array References.

Also, from looking at the code above, you may benefit from reading the Data::Dumper docs. It's typically a much handier way of displaying a data structure than rolling your own.


_______________
D a m n D i r t y A p e
Home Node | Email