Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: compute the occurrence of words

by Tux (Monsignor)
on Feb 13, 2013 at 14:27 UTC ( #1018546=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %count;
    while (<FH>) {
        $count{lc $_}++ for grep { !m{^[0-9]+(\.[0-9]+)?$} } m/\w+/g;
        }
    
  2. or download this
    $count{lc $_}++ for grep { !m{^[0-9]+$} } m/^\w+$/g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-09-20 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (163 votes), past polls