Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Compare String within an Arrayby tosaiju (Acolyte) |
on Aug 01, 2012 at 05:30 UTC ( [id://984698]=perlquestion: print w/replies, xml ) | Need Help?? |
tosaiju has asked for the wisdom of the Perl Monks concerning the following question:
Dear Perl Monks,
I’m searching for a string comparison function - where I have to find the distance/score between two strings or a string with an array. Appreciate any thoughts/help. I have a string (say a person’s name) which to be compared with a list of values (names) – if any of them matches – to show the most matching one. I have heard about an algorithm “Damerau–Levenshtein distance”; also saw a CPAN module related to it “Text::Levenshtein”. Just wondering if this would be best option or are there any other best modules for string comparison. Thanks a lot for all advice and help Dear Monks.
Back to
Seekers of Perl Wisdom
|
|