On Wed, Mar 24, 2004 at 11:31:15AM +0100, juman wrote:
> String 1 compared to String 2 gives 40% (four words are the same)
> String 2 compared to String 1 gives 80% (four word are the same)

You can find a summary of possibilities here:

http://www.perlmonks.org/index.pl?node_id=162038

Basically, what is comes down to are these modules:

String::Approx
Text::Levenshtein
Algorithm::Diff

My favorite is the Levenshtein distance module.

Good luck,

Damon

-- 


Damon Allen Davison

http://allolex.freeshell.org/

Perl and Linguistics 
<http://world.std.com/~swmcd/steven/perl/linguistics.html>
<http://www.linuxjournal.com/article.php?sid=3394>
<http://www.wall.org/~larry/keynote/keynote.html>

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to