Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: count of a word occurrence

by sgifford (Prior)
on Mar 23, 2004 at 06:22 UTC ( [id://338909]=note: print w/replies, xml ) Need Help??


in reply to count of a word occurrence

Golfed solution:
perl -lane '$c{$F[0]}++;END{print"$_=$c{$_}"for keys%c}'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-16 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found