Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: DBI : Get Column name and Value in hash

by Tux (Canon)
on Nov 27, 2009 at 17:18 UTC ( [id://809774]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %rec;
    my $sth = $dbh->prepare ("select * from foo");
    ...
    while ($sth->fetch) {
        print "foo.c_foo = $rec{c_foo}\n";
        }
    
  2. or download this
    cmpthese (5, {
        hashref     => sub {
    ...
              Rate hashref bindcol
    hashref 1.31/s      --    -76%
    bindcol 5.49/s    320%      --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-18 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found