Help for this page

Select Code to Download


  1. or download this
      # assuming $left sequence is the longer one
      my $len = length($right);
      my @matches = map {
        (substr($left, $_, $len) ^ $right) =~ tr/\0/\0/
      } 0 .. length($left) - $len;