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.
In reply to Compare String within an Array by tosaiju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |