in reply to Re^2: DBI fetchall_arrayref using $max_size doesn't dereference normally.
in thread DBI fetchall_arrayref using $max_size doesn't dereference normally.
The docs say that when there are no more rows, fetchall_arrayref returns a reference to an empty array. That would imply your while loop would never terminate (a reference is always true, even if it's a reference to an empty array). gmax's suggested code above fixes that.
In Section
Seekers of Perl Wisdom