BlenderHead has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone know of a tutorial/example of how to make a table with rows and columns using loops in HTML::Template?
I can already do rows in HTML::Template with relative ease, but how to do rows AND columns elude me.
Suppose for example I did a DB call and had a hash with eighteen different references, and I wanted to put it into a table that was four columns wide. Each column would get a reference, and - with eighteen references - it would require five rows with two columns left over.
What I am doing is trying to figure out how to generate the loop to format the table, so that it stops after four columns, and then starts a new row.
Any ideas? Examples?
TIA, Everyone.
:)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to create a table with rows and columns using HTML::Template loops?
by wfsp (Abbot) on Jun 24, 2009 at 07:35 UTC | |
|
Re: How to create a table with rows and columns using HTML::Template loops?
by porta (Sexton) on Jun 24, 2009 at 03:30 UTC | |
by BlenderHead (Novice) on Jun 24, 2009 at 04:14 UTC |