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

How does DBI return an arrayref with key/value pairs?

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

Help for this page

Select Code to Download


  1. or download this
    $rows = $dbh->selectall_arrayref(
                "                   
    ...
        my $age  = $row->{age};
        my $gender = $row->{gender};
    }
    
  2. or download this
    $ { $array_ref } [2]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1040177]
Front-paged by Corion
help
Chatterbox?
[chacham]: i'm reading an article on codepath.com and thee is a disturbing message on the bottom right that says, "Fork me on GitHub". Maybe i just have a dirty mind.
[choroba]: Check the ninja on perlbrew.pl
[chacham]: oh my...
[Corion]: choroba++ # fixed width
marto has a Dirty_Mind on vinyl

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-08-17 13:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (287 votes). Check out past polls.

    Notices?