Audit-DBI
view release on metacpan or search on metacpan
lib/Audit/DBI/Utils.pm view on Meta::CPAN
return $variable_1 eq $variable_2;
}
sub _diff_structures_comparison_default
{
my ( $variable_1, $variable_2 ) = @_;
# For numbers, return numerical comparison.
return $variable_1 == $variable_2
if Scalar::Util::looks_like_number( $variable_1 ) && Scalar::Util::looks_like_number( $variable_2 );
# Otherwise, use exact string match.
return $variable_1 eq $variable_2;
}
sub _diff_structures
{
my ( $cache, $structure1, $structure2, %args ) = @_;
my $comparison_function = $args{'comparison_function'};
( run in 0.882 second using v1.01-cache-2.11-cpan-607d282f910 )