Help for this page

Select Code to Download


  1. or download this
    full_compare \@ARR1, \@ARR2
    
    Do a full comparison between two arrays.
    
    Checks each individual column. In scalar context returns the number of
    + columns that differ (zero if the arrays are the same). In list conte
    +xt returns an list containing the indexes of the columns that differ 
    +(an empty list if the arrays are the same).
    
  2. or download this
    foreach my $i (@differences) {
      print "$array1[$i] is not equal to $array2[$i]\n";
    }