Nifty...
though if it doesn't find a "." "?" or "!" in the input file, you'll get a warning:
Use of uninitialized value in addition (+) at wc.pl line 95.

~monk d4vis
#!/usr/bin/fnord


In reply to Re: Word Count Script+ by d4vis
in thread Word Count Script+ by xgunnerx

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":