Robin Cragg wrote at Tue, 24 Sep 2002 17:26:24 +0200:

> how about:
> 
> while(@results = $dbh->dbnextrow){
>          print "<TR>";
>          foreach (@results) {
>                  print "<TD>$_<</TD>\n";
                                ^
>          }
>          print "</TR>";
> }

Or still shorter:

while (my @result = $dbh->dbnextrow) {
    print "<TR>", map( "<TD>$_</TD>", @result ), "</TR>";
}

Or more beautiful (:-))

use CGI qw/:standard/;

while (my @result = $dbh->dbnextrow) { 
   print Tr td \@result;
}


Greetings,
Janek


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to