Array-Compare
view release on metacpan or search on metacpan
lib/Array/Compare.pm view on Meta::CPAN
my ($row1, $row2) = @_;
# No point in continuing if the number of elements is different.
return unless $self->compare_len(@_);
# @check contains the indexes into the two arrays, i.e. the numbers
# from 0 to one less than the number of elements.
my @check = 0 .. $#$row1;
my ($pkg, $caller) = (caller(1))[0, 3];
$caller = '' unless defined $caller;
my $perm = $caller eq __PACKAGE__ . "::perm";
# Filter @check so it only contains indexes that should be compared.
# N.B. Makes no sense to do this if we are called from 'perm'.
unless ($perm) {
@check = grep {!(exists $self->Skip->{$_} && $self->Skip->{$_}) } @check
if keys %{$self->Skip};
}
( run in 0.268 second using v1.01-cache-2.11-cpan-b61123c0432 )