Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992591]
help
Chatterbox?
[LanX]: On another node, I just saw yesterday that the everything engine supports auto-paragraph whithout the need to type <p>
LanX i.e. the newest everything engine
[holli]: nice. i never thought of hosting a script on the site
[LanX]: It's not a perfect solution, since it means invoking the monastery several times, but IMHO still better than hosting on another server
[holli]: i'm surprised it even executes. the server sends text/plain AND a content-dispositio n header
[holli]: this really really should not be executed as Javascript
erix's head is getting content indisposed
[holli]: maybe try a GET instead?

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-11-20 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (291 votes). Check out past polls.

    Notices?