in reply to Re: Word Evaluationin thread Word Evaluation
next if $word=~/\b$w\b/; [download]
next if $word =~ /(^|\s)$w(\s|$)/; [download]
-- integral, resident of freenode's #perl