$st = $db->prepare( "SELECT * FROM counter" ); $st->execute(); $row = $st->fetchrow_hashref; @tableRows = (); while( $item = $row ) { push @tableRows, $item; }; print table( {class=>'info'}, map { Tr( td( submit( -name=>'game', -value=>$_->{name} )), td( $_->{text} ), td( $_->{name} ) ) } @tableRows );
In reply to Looping question by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |