Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Counting Variations of Key in a Hash

by polettix (Vicar)
on Aug 09, 2005 at 17:03 UTC ( #482304=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    $Data::Dumper::Sortkeys = 1;
    print Dumper \%animals ;
    
  2. or download this
    $VAR1 = {
              'HIPPO1' => {
    ...
                                         ]
                          }
            };
    
  3. or download this
    foreach my $href (values %tmp) {
       $animals{$_} = $href->{data} foreach keys %{$href->{variations}}
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-06-05 18:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (40 votes). Check out past polls.

    Notices?