in reply to Statistics from a txtfile
character count including whitespace the punctuation
For each character in a line, increment a hash keyed on that character. (i.e. $CharCount{ $ch }++; )
number of words. paragraphs. lines and sentences.
How would you determine the end of a word, a paragraph, or a sentence? Increment the appropriate counter when you hit that situation.
How do you determine that you've read a line?