But I was expecting:You did a case sensitive match for "Smith", so it correctly skipped over "smith".
You can try m{$search_term}i instead, for case ignoring matching.
BTW Do you have anything against slashes for regular expressions? It's the default, and it's what people are used to: /$search_term/i
Changing it without reason is unnecessarily obfuscating.
In reply to Re^2: What does this mean?
by bart
in thread What does this mean?
by biginingperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |