/\b$_\b/
should be
/\b\Q$_\E\b/
since the OP said he had an array of words (as opposed to regexps).
In reply to Re^2: Increasing key/values held in a Hash from an Array
by ikegami
in thread Increasing key/values held in a Hash from an Array
by Gavin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |