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

Re^3: inverting hash / grouping values

by marinersk (Priest)
on Sep 27, 2013 at 15:16 UTC ( #1055999=note: print w/replies, xml ) Need Help??


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

I'm confused by your question. I have seen a key and its value frequently refered to as a key/value pair.

Do I misunderstand you?

Replies are listed 'Best First'.
Re^4: inverting hash / grouping values
by LanX (Chancellor) on Sep 27, 2013 at 15:24 UTC
    > 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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055999]
help
Chatterbox?
[Corion]: If you have whitespace in the column names in the database, whap the DBAs ;)
[shmem]: It's common for some vendors to have column names such as WRSTVG or some other such whizzbang, and another table where these names are mapped to something meaningful depending on how you look at the data
[shmem]: afair in SAP that occurs all the time
[shmem]: afair in SAP that sort of indirection is sprinkled all over the database (for hysterical raisins)

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (12)
As of 2017-05-25 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?