Help for this page

Select Code to Download


  1. or download this
    no warnings 'regexp'; ($str0 ^ $str1) =~ /^((??{chr(0)})*)/;
    $commonLen = $+[0];
    
  2. or download this
    ($str0 ^ $str1) =~ /^\0*)/;
    
  3. or download this
    #!/usr/bin/perl -l
    
    ...
    aaaa aabb
    aaaa aaab
    aaaa aaaa