in reply to Number of lines and characters
I'd suggest saving your .doc file off as text first, if you really want to do this through perl.
Once you've got just the text you want to count, you can do what you want in several ways. Here are my contributions:
open FILE, "<$file"; my @lines = <FILE>; print "Lines: " . scalar(@lines) . "\n"; print "Chars: " . length(join '', @lines) . "\n"; close FILE;
~CubicSpline
"No one tosses a Dwarf!"
|
|---|