Help for this page

Select Code to Download


  1. or download this
    my @array1 = sort getArray1;
    my @array2 = sort getArray2;
    ...
      if ($array1[$i1] > $array2[$i2]) { $i2++; }
      else { $i1++; }
    }
    
  2. or download this
    @array1 = ( "a", "a", ... );
    @array2 = ( "a", "b", ... );
    
    Results:
    a is repeated at position array1[0] and array2[0]