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

Re^3: inverting hash / grouping values

by Anonymous Monk
on Sep 27, 2013 at 18:00 UTC ( #1056053=note: print w/ replies, xml ) Need Help??


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

DB<106> safe_reverse \%h => (1, ["a", "b"], 2, "c")

That kind of hash (reference) drives me nuts as it makes using the values cumbersome due to the need to test the type before use. (That reminds me to write a utility sub to convert (plain) scalar to one-element array reference.)


Comment on Re^3: inverting hash / grouping values
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-08-01 02:00 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 (285 votes), past polls