One more thing, I noticed you're using the /o modifier here:
You should remove it - see regex "o" modifier especially tye's response and Aristotle's response: Never use /oif($word=~/($wordcnt)/io){
Updated: Added Aristotle's response
In reply to Re: Word Count and Match
by eyepopslikeamosquito
in thread Word Count and Match
by PilotinControl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |