![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
How to create a table with rows and columns using HTML::Template loops?by BlenderHead (Novice) |
on Jun 24, 2009 at 02:36 UTC ( [id://774220]=perlquestion: print w/replies, xml ) | Need Help?? |
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. :)
Back to
Seekers of Perl Wisdom
|
|