in reply to Re^2: Is it possible to find the number of matching and non-matching positions in strings using perl code?
in thread Is it possible to find the number of matching and non-matching positions in strings using perl code?
But the for loop just obfuscates things without adding anything at all.
It adds generality beyond three strings to compare.
Also, calling your variable $mask is questionable as you don't really intend to use it as a mask.
So what do you suggest instead? Your usage of $bits isn't any better, because you don't care about bits, but bytes. But $bytes also wouldn't explain the purpose of the variable.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Is it possible to find the number of matching and non-matching positions in strings using perl code?
by sauoq (Abbot) on May 11, 2012 at 12:53 UTC |
In Section
Seekers of Perl Wisdom