Hello monks
I am playing with Text::Fuzzy in order to match and replace strings in a text file with a fuzzy logic (I need to take account in my matching of inflected words, such as sing/plural, etc.). The function that seems most promising is:
my ($offset, $edits, $distance) = fuzzy_index ($needle, $haystack);
Once I have the offset of a fuzzy much I can apply:
my $needleLenght=length ($needle);
substr($haystack, $offset, $needleLenght) = "my new value";
However, the module's documentation states that the value returned is the offset of the closest match found. However, I need to find ALL offsets of my $needle in $haystack. Do you know any module that achive this? Or any trick to have it with this module?