Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: inverting hash / grouping values

by Athanasius (Monsignor)
on Sep 27, 2013 at 15:02 UTC ( #1055994=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    
    my  %dup_rev = safe_reverse \%t;
    dd \%dup_rev;
    
  2. or download this
     0:56 >perl 729_SoPW.pl
    { a => 1, b => 2, c => 1, d => 2, e => 1, f => 2 }
    { 1 => ["c", "e", "a"], 2 => ["b", "d", "f"] }
    
     0:57 >
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-09-17 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (99 votes), past polls