If all you want in the end is a percentage, you may want to look up established string similarity algorithms. See for example the perl module String::Similarity.
If you are willing to look outside perl, see e.g. https://github.com/adrg/strutil and references therein.
In reply to Re: Compare two strings of same length, character-by-character
by kikuchiyo
in thread Compare two strings of same length, character-by-character
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |