Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Count number of words on a web page?

by cdarke (Prior)
on Feb 09, 2010 at 16:26 UTC ( [id://822225]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ ='The,quick,brown;foxy.  Does a lot,of:jumping!';
    
    my @words = split(/\W*\s+\W*/, $_); # split into words
    
    print 'Number of words: '.@words."\n";
    
  2. or download this
    my @words = split(/\b\W*/, $_); # split into words
    

Log In?
Username:
Password:

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

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

    No recent polls found