macoda has asked for the wisdom of the Perl Monks concerning the following question:

I'm have 2 tab delimited files, both filled with 2 columns and around 5000 records, I have written the code getting perfect matches, but I also would like the code to get me all the records with a similarity of 80% and higher. Can anyone help me out!!!! The code I found on PM does not help me further. I know I should not be a difficult piece of code, but since I'm a Perl dummy...... thanks in advance, marinus

Replies are listed 'Best First'.
Re: similarity % strings
by marto (Cardinal) on Oct 12, 2005 at 09:40 UTC
Re: similarity % strings
by tirwhan (Abbot) on Oct 12, 2005 at 09:55 UTC
    String::Approx lets you match strings with a configurable percentage of approximateness (assuming that is what you want to do).
Re: similarity % strings
by planetscape (Chancellor) on Oct 14, 2005 at 05:07 UTC