in reply to DBI AoArefs dereference
push @qrydata, [ @$row ];
By the way,
should belast if $xx++ >10;
if (@qrydata > 10) { $sth->finish(); last; }
The counter variable is useless, and calling finish avoids a warning.
Even better would be to use a LIMIT clause to not fetch the rows you don't want in the first place. Then you'd also be able to use selectall_*.
|
|---|