my @entries = (... 50 or 60 things...); print "<table etc etc>"; while (@entries) { my @row_entries = splice @entries, 0, 5; print "<tr etc etc>"; for (@row_entries) { print "<td etc etc>"; process $_; print "</td>"; } print "</tr>"; } print "</table>";
-- Randal L. Schwartz, Perl hacker
In reply to •Re: simple column/row counter
by merlyn
in thread simple column/row counter
by monkscafe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |