ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/String-Similarity/Similarity.pm
(Generate patch)

Comparing String-Similarity/Similarity.pm (file contents):
Revision 1.2 by root, Tue Nov 4 15:31:38 2008 UTC vs.
Revision 1.3 by root, Fri Nov 16 22:55:05 2012 UTC

41You can add an optional argument C<$limit> (default 0) that gives the 41You can add an optional argument C<$limit> (default 0) that gives the
42minimum similarity the two strings must satisfy. C<similarity> stops 42minimum similarity the two strings must satisfy. C<similarity> stops
43analyzing the string as soon as the result drops below the given limit, 43analyzing the string as soon as the result drops below the given limit,
44in which case the result will be invalid but lower than the given 44in which case the result will be invalid but lower than the given
45C<$limit>. You can use this to speed up the common case of searching for 45C<$limit>. You can use this to speed up the common case of searching for
46the most similar string from a set by specifing the maximum similarity 46the most similar string from a set by specifying the maximum similarity
47found so far. 47found so far.
48 48
49=cut 49=cut
50 50
51# out of historical reasons, I prefer "fstrcmp" as the original name. 51# out of historical reasons, I prefer "fstrcmp" as the original name.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines