You want selectall_arrayref:
$sql = "select * from table limit 10"; $rows = $db->selectall_arrayref( $sql, { Slice => {} } ); foreach my $row ( @$rows ) { print $row->{id}, "\n"; }
In reply to Re: problem with fetchall_arrayref
by derby
in thread problem with fetchall_arrayref
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |