Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Counting occurances

by LeGo (Chaplain)
on Jul 20, 2001 at 04:20 UTC ( [id://98290]=note: print w/replies, xml ) Need Help??


in reply to Counting occurances

Another way might be to...
%hash = map {$_=>$c{$_}++} @a; foreach (keys %d) {print "$_ occurs $c{$+}\n"};
not possibly better but another way...
LeGo

Log In?
Username:
Password:

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

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

    No recent polls found