Pathologically Eclectic Rubbish Lister | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I want to see if a given string is off by 1 character from the test string. Thus,
If my test string is "foo bar baz", I want to have a function that matches any one of:
Here, I'm looking for off-by-one errors. Extra bonus for a function that matches if it's off by an arbitrary N. That is, a function that returned the number of characters that were different between the strings rather than just a binary true/false.
Dan Heller http://www.danheller.com In reply to off-by-one string comparison by argv
|
|