Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Hash table

by Corion (Pope)
on Sep 09, 2012 at 14:59 UTC ( #992591=note: print w/replies, xml ) Need Help??

in reply to Hash table

From your other questions, it seems to me as if you are confusing the keys of a hash, and the (primary) keys in a database. These two are different concepts.

If you are starting out with Perl, perlintro maybe is a good start. Also, consider the each keyword.

But thinking more about your questions, I think that you don't want a hash at all, you want to fetch (by using ->selectall_arrayref) a list of rows. These rows can be hashes again, with one key per column.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992591]
[LanX]: Oh I see, userDict should have been declared in n outer scope ...
[LanX]: an
[LanX]: strange python accepts this?
[LanX]: no previous userDict?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2018-03-20 18:17 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (257 votes). Check out past polls.