in reply to Pattern searching allowing for mis-matches...
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Pattern searching allowing for mis-matches...
by MaroonBalloon (Acolyte) on Dec 13, 2009 at 19:29 UTC | |
by bv (Friar) on Dec 14, 2009 at 00:08 UTC |
In Section
Seekers of Perl Wisdom