Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Array statistics

by erikharrison (Deacon)
on Jun 26, 2002 at 20:53 UTC ( [id://177526]=note: print w/replies, xml ) Need Help??


in reply to Array statistics

Generally, here on perlmonks, it's a good idea to show your code. We're all more inclined to help you if you show what you've been doing, to prove that you've done your homework. In this vein, here are a couple of links:

But, as long as you took the time to post the question, here is one of the many ways you might do it.

foreach $item (@data) { $members{$item}++; } foreach $item (keys %members) { print "$item : $members{$item}"; }
Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet

Log In?
Username:
Password:

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

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

    No recent polls found