Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Help on array element counting

by Roger (Parson)
on Oct 27, 2003 at 23:14 UTC ( [id://302562]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Data::Dumper;
    
    ...
    map { $count{$_}++ } @fruits;
    
    print Dumper(\%count);
    
  2. or download this
    $VAR1 = {
              'GRAPES' => '1',
    ...
              'BANANA' => '1',
              'MANGO' => '5'
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found