Some comments:
my $n = length $$strref; # shift/rotate string and compare to original my $diff = $$strref ^ substr( $$strref, -$i ).substr( $$strref, 0, -$i + ); # number of differing characters between shifted string and original my $ndiff = $diff =~ tr/\0//c; return 1 if $ndiff/$n < $tolerance
In reply to Re: Analysing a (binary) string.
by hdb
in thread Analysing a (binary) string. (Solved)
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |