Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: DBI Fetchrow_hasref issue

by jweed (Chaplain)
on Feb 21, 2004 at 17:20 UTC ( [id://330825]=note: print w/replies, xml ) Need Help??


in reply to DBI fetchrow_hashref issue

You're very close. To make your first example work, you need to just add a dollar sign in front of info when you dereference:
while($info = $sth->fetchrow_hashref) { @case = keys %{ $info }; print @case; }
Once you do this, you'll see that your second example is basically the same as the first, except it iterates thought the hash instead of dumping the keys all at once.

HTH.



Code is (almost) always untested.
http://www.justicepoetic.net/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found