in reply to CGI table rows from an array
my @rows = ( [ 1, 2, 3, 4 ], [ 5, 6, 7, 8 ], [ 9, 10, 11, 12 ], ); print table({-border=>1},Tr([ th(['Document', 'X', 'Y', 'Z']), map { td([ map { a({-href=>$_},$_) } @$_ ]) } @rows ]) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI table rows from an array
by Melly (Chaplain) on Oct 10, 2006 at 13:48 UTC |