Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: inverting hash / grouping values

by kcott (Abbot)
on Sep 28, 2013 at 15:10 UTC ( #1056141=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    
    use Data::Dump;
    dd \%h, \%i, \%j;
    
  2. or download this
    $ pm_hash_invert.pl
    (
    ...
      { 1 => ["a", "e", "c"], 2 => ["f", "b", "d"] },
      { 1 => ["a", "e", "c"], 2 => ["f", "b", "d"] },
    )
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2014-09-30 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (367 votes), past polls