Melly has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monkees
How would I generate a series of TD values from an array using 'proper' CGI syntax?
e.g. (make this work - simplified in this example to a single column)
@filesout = qw(a b c); print table({-border=>1},Tr([ th(['Document']), foreach(@filesout){ td([a({-href=>$_},$_)]) } ]) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI table rows from an array
by davidrw (Prior) on Oct 10, 2006 at 13:20 UTC | |
by Melly (Chaplain) on Oct 10, 2006 at 13:48 UTC | |
|
Re: CGI table rows from an array
by odha57 (Monk) on Oct 10, 2006 at 13:56 UTC |