Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: DBI and fetchrow_hashref

by mephit (Scribe)
on May 08, 2002 at 05:22 UTC ( [id://164914]=note: print w/replies, xml ) Need Help??


in reply to DBI and fetchrow_hashref

fetchrow_hashref() returns just that: a reference to a hash. You're trying to access an actual hash. Instead, try

 print $hashrow->{phone}, "\n";

The Data::Dumper module is useful in cases like this. You can

 print Dumper ($hashrow);

to see the structure of the reference, and figure out how to get at the data.

HTH

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-25 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found