almut,
I didn't mention String::Approx because of the disclaimer by the author in the POD:
NOTE: String::Approx suits the task of string matching, not string comparison, and it works for strings, not for text.
If you want to compare strings for similarity, you probably just want the Levenshtein edit distance (explained below),...
String::Approx uses the Levenshtein edit distance (tLed) as its measure, but String::Approx is not well-suited for comparing the tLeds of strings, in other words, if you want a "fuzzy eq", see above. Strings::Approx is more like regular expressions or index(), it finds substrings that are close matches.
Of course, having more information may reveal that this is the perfect tool for the job and that the other modules are less appropriate so thanks for bringing it up.
| [reply] |