Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: DBI fetchall_arrayref using $max_size doesn't dereference normally.

by runrig (Abbot)
on Jul 28, 2005 at 21:20 UTC ( #479138=note: print w/replies, xml ) Need Help??


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.
  • Comment on Re^3: DBI fetchall_arrayref using $max_size doesn't dereference normally.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://479138]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2019-12-13 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?