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

Re^4: inverting hash / grouping values

by LanX (Chancellor)
on Sep 27, 2013 at 15:24 UTC ( #1056002=note: print w/replies, xml ) Need Help??

in reply to Re^3: inverting hash / grouping values
in thread inverting hash / grouping values

> I have seen a key and its value frequently refered to as a key/value pair.

the result of this inversion operation is a HoA  { key1 => [ value11, value12], key2 => [value21],  ...}

And neither

  • a hash with key/value pairs { key1 =>value1 , key2 => value2, ...}
  • a list with key/value pairs ( key1, value1, key2, value2 ,...)
  • a list of arrays with pairs (tuples) ( [key1, value1], [key2,value2], ... )

IMHO all better interpretations.

Cheers Rolf

( addicted to the Perl Programming Language)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2016-10-25 13:04 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (319 votes). Check out past polls.