Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Number of lines and characters

by krujos (Curate)
on Aug 28, 2002 at 14:27 UTC ( #193467=note: print w/replies, xml ) Need Help??


in reply to Number of lines and characters

If you only have to do this with one file the counter in word is pretty good. tools->word count. Otherwise, assuming you have already opened the word document so that perl can read it (using one of the windows modules) you could do something like.
while (<FILE>) { if(/\w/) { count ++; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://193467]
help
Chatterbox?
[tye]: gah, Benchmark needs some serious work.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-02-23 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (338 votes). Check out past polls.