What is a good/best way to count the number of characters, words, and lines of a text file using Perl (without using wc)?
The Word Count tool counts characters, words and lines in text files