use Data::Dumper;
use SQL::Abstract;
-
-my $dclone = eval { require Storable; \&Storable::dclone };
+use Storable 'dclone';
#### WARNING ####
#
my $sql = SQL::Abstract->new ($case->{args} || {});
- my $where_copy = $dclone->($case->{where})
- if $dclone;;
+ my $where_copy = dclone($case->{where});
lives_ok (sub {
my ($stmt, @bind) = $sql->where($case->{where});
is (@w, 0, 'No warnings within and-or tests')
|| diag join "\n", 'Emitted warnings:', @w;
- is_deeply ($case->{where}, $where_copy, 'Where conditions unchanged')
- if $dclone;
+ is_deeply ($case->{where}, $where_copy, 'Where conditions unchanged');
}
}