Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Answer: How do I find the percentage of similarity between strings?

( #248754=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How do I find the percentage of similarity between strings? contributed by The Mad Hatter

String::Approx is good as someone else said. So is Text::Levenshtein. With the values you can get from both modules, you should be able to do some math to get a percentage.

You might also want to read Levenshtein distance: calculating similarity of strings.

Comment on Answer: How do I find the percentage of similarity between strings?
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2015-07-07 18:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls