Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: (another) HoH question

by muba (Priest)
on Jun 23, 2012 at 19:53 UTC ( #978011=note: print w/ replies, xml ) Need Help??


in reply to Re: (another) HoH question
in thread (another) HoH question

"a hash cannot have duplicate keys". If a hash could look like this: (...snip...) ...how would perl know what value to return when you said, "Give me the value associated with the key '456'?

True. But a hash value can be an array ref, so in a way you can associate multiple values to a single key. Which, I think, is what is needed here.


Comment on Re^2: (another) HoH question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (16)
As of 2014-08-20 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (121 votes), past polls