*ugh* Never mind the below as I forgot completely that regex was already accounting for the repeated words.
words that occur more than once
So without a counter as you state ...
... For purposes of answering the question "Has this word repeated" $words{$1} = undef; works just as well and the following increment is not required.
... I fail to see how one can find if a word appears more than once. The best one could know is if a word appears at all.
In reply to Re^4: regex, find words that occur more than once.
by parv
in thread regex, find words that occur more than once.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |