pjanzen has asked for the wisdom of the Perl Monks concerning the following question:
now i want to print that to the screen using map, like this$VAR = [ 'bla', 'bla1', 'etc', 'etc', ];
at the moment it is all being printed in one long line but i want to print per row in a table.my $self = shift; my $q = $self->query(); # The execute is called from a differnt module for securety reasons. a +nd there is the actual fetch done. my $result = $self->execute(statement => 'data_ossd', ary2d => '1', handle => 'appframe'); print STDERR Dumper($result); my $output = $q->table({-border=>'1', -align=>'center'}); $output .= $q->Tr({-align=>'CENTER', -valign=>'TOP', -width=>'70 +%'}); $output .= $q->th({-style=>'font-size: 10px'},['Mso_id','Mso_nam +e','Postcode','Housenumber','Appertment number','Who enterd data', 'Email send to','Date send','Update recieved','TT number','Status']); $output .= $q->Tr(map{$q->td($_)}@{$result}); return $output;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 2d array
by sauoq (Abbot) on Aug 01, 2002 at 20:16 UTC | |
by pjanzen (Sexton) on Aug 01, 2002 at 20:31 UTC | |
|
Re: 2d array
by BrowserUk (Patriarch) on Aug 01, 2002 at 23:46 UTC |