And this approach has (what may be) the advantage that the strings being compared need not be equal in length as in the bitwise-xor approach. E.g., try:
my @strings = ( "This is the wild cat", "Thsi is the house cat", );
In reply to Re^2: Fastest way to find the mismatch character
by AnomalousMonk
in thread Fastest way to find the mismatch character
by basheer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |