in reply to Outputting data to tables with CGI.pm

print $query->table( $query->Tr( map { $query->td([$_->{name}, $_->{year}, $_->{rating}],) } @table ), );

I wonder if you want the Tr() call inside of the map though.