What is a good/best way to count the number of characters, words, and lines of a text file using Perl (without using wc)?
Non-serious answer:
system("wc foo");