Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: DBI specification change

by Aristotle (Chancellor)
on Jul 17, 2002 at 18:38 UTC ( #182548=note: print w/replies, xml ) Need Help??


in reply to Re: DBI specification change
in thread DBI specification change

gav^ is close, but there's a method that's closer yet; in fact it does exactly what you're asking for: fetchall_arrayref - no, that's not a typo, it will return a list of hashes, provided you pass it a hashref as argument. my $row_aoh = $sth->fetchall_arrayref({});
Note that you if you populate the anonymous hash, the keys are taken to select the desired columns from your query. See the DBI POD.

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182548]
help
Chatterbox?
[Corion]: The nicer approach maybe would have been to indirectly tell them that, or tell them who could teach them...
[erix]: No More Mr Nice Guy !

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2017-10-23 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (279 votes). Check out past polls.

    Notices?