We don't bite newbies here... much | |
PerlMonks |
Re: off-by-one string comparisonby Zaxo (Archbishop) |
on Jun 05, 2005 at 17:42 UTC ( [id://463740]=note: print w/replies, xml ) | Need Help?? |
Text::Levenshtein implements a well-known metric for difference between strings.
So your off-by-one test could be written, For extra credit, leave out the "1 ==" part ;-) After Compline,
In Section
Seekers of Perl Wisdom
|
|