Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: confused with summing certain elements from an array

by erroneousBollock (Curate)
on Nov 20, 2007 at 12:45 UTC ( [id://651913]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my %counts;
      while (my $key = shift @out) {
        $counts{$key} += shift @out1;
      }
    
  2. or download this
      print "$_: \t$counts{$_}\n" for sort keys %counts;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found