Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: string similarity by using a function sort_by_similarity()

by shmem (Canon)
on Nov 08, 2009 at 12:20 UTC ( #805755=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Math::Combinatorics qw( combine);
    my @collection; # list of strings
    ...
        ...
        return $value;
    }
    
  2. or download this
    my @similarity = map { $_->[0] }
                     sort { $a->[1] <=> $b->[1] }
                     map { [ $_, similarity($_) ] } @tuples;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://805755]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-09-16 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (155 votes), past polls