in reply to Re: Re: Word Evaluation
in thread Word Evaluation

Or you can use the slightly more longwinded form using alternations that allows $w to start with non-work characters (\b looks at the change between \W to \w not \s and \S):
next if $word =~ /(^|\s)$w(\s|$)/;

--
integral, resident of freenode's #perl