nicholas has asked for the wisdom of the Perl Monks concerning the following question:
Thanks Nicholaswhile(($object = $enum->Next)) { $para_temp++; $paragraph = $object->Range->{Text}; $allText .= $paragraph; chop $paragraph; unless ($paragraph eq '') { $paragraph_count++; } chomp $paragraph; @words = split /\s+/, $paragraph; $nwords += @words; @chars = split //, $paragraph; $nchars += @chars; }
Edited by Chady -- added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get MS-Word Page count and line count?
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 07:17 UTC | |
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 08:12 UTC | |
by Zero_Flop (Pilgrim) on Mar 08, 2004 at 22:46 UTC | |
by nicholas (Novice) on Mar 09, 2004 at 06:36 UTC | |
by nicholas (Novice) on Mar 08, 2004 at 12:15 UTC | |
by nicholas (Novice) on Mar 08, 2004 at 07:29 UTC | |
|
Re: How to get MS-Word Page count and line count?
by jmcnamara (Monsignor) on Mar 08, 2004 at 22:38 UTC |