Can someone suggest a Perl module that can compare two strings and return the degree to which they match? I searched CPAN extensively, and although there are similar modules like String :: Approx and Data :: Compare , they are not what I am looking for. Suppose I have two lines: I love you , and I send you . I want a functionality that will compare these two lines, taking into account many parameters, matching the words in the correct order ( love , since the first word in the line should not match "strong> love strong> as the 4th word in the second line, although both the lines have this word), the words do not match, but are written almost in the same way (for example, love andloge ), number of words, etc. and return an index, for example, a number from 0 to 1 on a scale of 1 representing the degree of similarity between two rows. Is there such a Perl module?
source
share