… | |
… | |
41 | You can add an optional argument C<$limit> (default 0) that gives the |
41 | You can add an optional argument C<$limit> (default 0) that gives the |
42 | minimum similarity the two strings must satisfy. C<similarity> stops |
42 | minimum similarity the two strings must satisfy. C<similarity> stops |
43 | analyzing the string as soon as the result drops below the given limit, |
43 | analyzing the string as soon as the result drops below the given limit, |
44 | in which case the result will be invalid but lower than the given |
44 | in which case the result will be invalid but lower than the given |
45 | C<$limit>. You can use this to speed up the common case of searching for |
45 | C<$limit>. You can use this to speed up the common case of searching for |
46 | the most similar string from a set by specifing the maximum similarity |
46 | the most similar string from a set by specifying the maximum similarity |
47 | found so far. |
47 | found 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. |