Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by The Mad Hatter (Priest)
on Apr 07, 2003 at 22:31 UTC ( #248754=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How do I find the percentage of similarity between strings? - Answer 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?
[Discipulus]: choroba started in primary school to get some advantage in the future..
[choroba]: nono, I programmed in Basic at the primary school, on my Commodore 116/16
[Discipulus]: ;=)
[choroba]: then learned some assebly on the same machine, then moved to my father's PC (XT with a Hercules card), used Turbo Pascal a lot
[choroba]: I started with *nix at the University, we had some Sparcs and Linux machines
[choroba]: that was around 1994 or 95
hippo actually introduced Linux to his university.
Discipulus mmh will be a fun meditation: How I started with computers and programming..
[Discipulus]: bravo hippo! well done

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2018-06-22 09:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (123 votes). Check out past polls.

    Notices?