if ($comp->full_compare(\@arr1, \@arr2)) { print "Arrays are different\n"; } else { print "Arrays are the same.\n"; }