in reply to Re: Column Count w/ HTML::Template
in thread Column Count w/ HTML::Template

use strict; use warnings; use HTML::Template; my $template = HTML::Template->new(filehandle => \*DATA); $template->param(foo => [ { bar => [{one => 'stuff', two => 'otherstuff'}] }, { bar => [{one => 'stuff2', two => 'otherstuff2'}] } ]); print $template->output; __DATA__ <table> <tmpl_loop foo> <tr> <tmpl_loop bar> <td> <tmpl_var one><br/> <tmpl_var two> </td> </tmpl_loop> </tr> </tmpl_loop> </table>
In other words, please post complete examples (no assembly required) and make sure your code works first (you left out some important curly braces that enable your code to compile).

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)