in reply to Creating a table from text delimited by newlines
This is reason #27 why CGI.pm's HTML generation functions are just so damn cool when it comes to outputting truly dynamic HTML. If you haven't meditated on how Tr(td(\@array)) works you should consult the CGI.pm documentation and be enlightened.my $file = join "", <FH>; my @rows = split /^\n/m, $file; for (@rows) { print Tr(td(["Checkboxes", split "\n"])); print Tr({-bgcolor=>"#000066"}, td({-width=>298}, [" ", "&nbs +p;"])); print "\n"; }
Gary Blackburn
Trained Killer
|
|---|