in reply to perl loops + html tables
code is UNTESTED.print "<tr>"; for (my $i = 0; $i<@values; $i++) { if (($i % scalar(@column_names)) == 0) { print "</tr>\n<tr>"; } print "<td>$values[$i]</td>\n"; } print "</tr>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl loops + html tables
by Juerd (Abbot) on Jan 10, 2005 at 13:29 UTC |