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

Re^2: How does DBI return an arrayref with key/value pairs?

by walkingthecow (Friar)
on Jun 21, 2013 at 14:48 UTC ( #1040189=note: print w/replies, xml ) Need Help??


in reply to Re: How does DBI return an arrayref with key/value pairs?
in thread How does DBI return an arrayref with key/value pairs?

Well, my tired eyes must need some sleep, because I seem to have glazed right over that when reading that. I was getting bothered at the fact that at one point it says, " It returns a reference to an array containing a reference to an array (or hash, see below)" and was thinking, "See below where?!" Turns out I either need glasses or some sleep. Thanks for clearing that up for me.

I did do a print Dumper on it, and what I was seeing was a hash, but somewhere I read in the documentation (trying to find it now) that it returns "a reference to an array of array refs," and my brain was thinking, "Wow, so somehow a reference to an array of array refs becomes a hash?" Silly brain.

  • Comment on Re^2: How does DBI return an arrayref with key/value pairs?

Replies are listed 'Best First'.
Re^3: How does DBI return an arrayref with key/value pairs?
by sundialsvc4 (Abbot) on Jun 21, 2013 at 20:39 UTC

    That is a very useful observation, hdb.   Meanwhile, walkingthecow, I hope that you did not take my rather-flippant comment wrongly.   Nothing was intended, but upon re-read I see that it could have slapped.   Hope not.   (But if not ... “it was moooo...”)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040189]
help
Chatterbox?
[thezip]: How goes it, Corion?
[Corion]: thezip: Quite good, after a one week vacation in the sun ;)
[Corion]: I hope you're well too!
[thezip]: Where did you go? We've already set a record for all-time February rainfall here.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-02-23 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (349 votes). Check out past polls.