- or download this
{
push @results, $sth->fetchrow_hashref || last;
redo;
}
- or download this
@results = @{$sth->fetchall_arrayref({})};
- or download this
Currently, a new hash reference is returned for each
row. This will change in the future to return the same
hash ref each time, so don't rely on the current
behaviour.