Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    push @posns, pos $diff while $diff =~ m{(?=[^\0])}g;
    print qq{Differences, 0-based counting, at - @posns\n};
    
  2. or download this
    Differences, 1-based counting, at - 3 23
    Differences, 0-based counting, at - 2 22