Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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 ++; } }

Comment on Re: Number of lines and characters
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2016-02-12 22:32 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (414 votes), past polls