Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Array of Hashes or Hash of Arrays

by cdarke (Prior)
on May 10, 2012 at 09:48 UTC ( #969779=note: print w/ replies, xml ) Need Help??


in reply to Array of Hashes or Hash of Arrays

thing?
key_list_by_value is a hash - you can tell by the { }.

$value is a hash key (looks like someone did a reverse() on %by_key. $key is a scalar.

$key_list_by_value{$value} is a reference to an array - hence the @{  }.


Comment on Re: Array of Hashes or Hash of Arrays
Select or Download Code
Replies are listed 'Best First'.
Re^2: Array of Hashes or Hash of Arrays
by perl@1983 (Sexton) on May 10, 2012 at 10:25 UTC
    Didn't quite understand your last statement.. Can you please help to clarify? $key_list_by_value{$value} is a reference to an array - hence the @{ }.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2015-07-28 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (259 votes), past polls