my $ary = $dbh->selectall_arrayref($sth_or_stmt); -or- my $ary = $dbh->selectall_arrayref($sth_or_stmt, undef, @bind_values); for (@$ary) { print "@{$_}\n"; }