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

Re: DBI help, aka confused newbie

by cchampion (Curate)
on May 09, 2004 at 18:18 UTC ( #351887=note: print w/ replies, xml ) Need Help??


in reply to DBI help, aka confused newbie

Look at DBI Recipes, and you'll find several ways of dealing with hashes.

Among them there is something like:

my $sth=$dbh->prepare($query); $sth->execute or die $DBI::errstr; my $array_of_hashes = $sth->fetchall_arrayref({}); for my $href (@$array_of_hashes) { # do something smart with $href }

HTH


Comment on Re: DBI help, aka confused newbie
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2014-09-19 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (133 votes), past polls