in reply to
Re: Word incidence count
in thread
Word incidence count
That leaves all the punctuation and other non-word characters and will tamper the results. (e.g. counting "word" and "word," as two different entities.)
holli,
/regexed monk/
Comment on
Re^2: Word incidence count
Replies are listed 'Best First'.
Re^3: Word incidence count
by
Joost
(Canon)
on May 17, 2005 at 07:53 UTC
True, and it also doesn't account for capitalisation.
It does give the same results as the OP's code.
- update: I just noticed it didn't :-)
"What should it profit a man, if he should win a flame war, yet lose his cool?"
[reply]
In Section
Seekers of Perl Wisdom