You could probably do better using regular expressions with Global matching. Without completely understanding what you mean by "slight mismatches," (please explain!) I think something like this would accomplish your exact matches:
$matches = ($value =~ /$search/g);UPDATE: using scalar where I did was wrong.
@_=qw; Just another Perl hacker,; ;$_=q=print "@_"= and eval;
In reply to Re: Pattern searching allowing for mis-matches...
by bv
in thread Pattern searching allowing for mis-matches...
by MaroonBalloon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |