There's more than one way to do things | |
PerlMonks |
Re: off-by-one string comparisonby bobf (Monsignor) |
on Jun 05, 2005 at 17:46 UTC ( [id://463741]=note: print w/replies, xml ) | Need Help?? |
Text::Levenshtein (which also has an XS version) will give the "edit distance" between two strings. There are several other modules that you could consider, including Text::PhraseDistance (which takes into consideration word order within the string) and String::Approx. Search CPAN - I'm sure there are others. HTH
In Section
Seekers of Perl Wisdom
|
|