The problem is your incorrect use of \b in your regex. If you want to ensure a full match use string boundaries not word boundaries:
$s = 'fred';; print 'fred' =~ m[\b\Q$s\E\b] ? 'matched' : 'no match';; matched $s = '$fred';; print '$fred' =~ m[\b\Q$s\E\b] ? 'matched' : 'no match';; no match $s = '$fred';; print '$fred' =~ m[^\Q$s\E$] ? 'matched' : 'no match';; matched
In reply to Re: passwords with special characters are trying to kill me... no seriously!
by BrowserUk
in thread passwords with special characters are trying to kill me... no seriously!
by calmthestorm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |