Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Tatnall (Beadle)
on Jul 28, 2005 at 21:10 UTC ( #479133=note: print w/replies, xml ) Need Help??


in reply to Re: DBI fetchall_arrayref using $max_size doesn't dereference normally.
in thread DBI fetchall_arrayref using $max_size doesn't dereference normally.

gmax,

The code is currently at work, thank you. I'm sure there is an even better way than the way I modified the code per your suggestion since I don't understand all of what is happening or why.

If you or someone else could unpack the while statement it could be greatly appreciated.
  • Comment on Re^2: DBI fetchall_arrayref using $max_size doesn't dereference normally.

Replies are listed 'Best First'.
Re^3: DBI fetchall_arrayref using $max_size doesn't dereference normally.
by runrig (Abbot) on Jul 28, 2005 at 21:20 UTC
    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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2019-11-13 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (69 votes). Check out past polls.

    Notices?