in reply to Passing array of references to Template
You simply need a second loop, something like this (untested):
[% FOR line IN results %] [% FOR item IN line %] [% item %] [% END %] [% END %]
And in answer to should I deference it, bind the columns and then sent it to Template?--no, it's not necessary, and in fact Template Toolkit does not do what one expects (or at least what I expect) if you use arrays directly, as opposed to an array ref, for arrays with one element. It's safest to always use array refs.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Passing array of references to Template
by packetstormer (Monk) on Aug 23, 2011 at 20:01 UTC | |
by philipbailey (Curate) on Aug 23, 2011 at 20:06 UTC | |
by packetstormer (Monk) on Aug 23, 2011 at 20:27 UTC |
In Section
Seekers of Perl Wisdom