use Storable;
use DBIx::Class::ResultSetColumn;
use DBIx::Class::ResultSourceHandle;
-use List::Util ();
use Hash::Merge ();
use Scalar::Util qw/blessed weaken/;
use Try::Tiny;
use Storable qw/nfreeze thaw/;
+
+# not importing first() as it will clash with our own method
+use List::Util ();
+
use namespace::clean;
+
BEGIN {
# De-duplication in _merge_attr() is disabled, but left in for reference
*__HM_DEDUP = sub () { 0 };
use Carp::Clan qw/^DBIx::Class/;
use DBIx::Class::Exception;
+
+# not importing first() as it will clash with our own method
use List::Util ();
=head1 NAME
sub _arm_global_destructor {
my $self = shift;
- my $key = Scalar::Util::refaddr ($self);
+ my $key = refaddr ($self);
$seek_and_destroy{$key} = $self;
- Scalar::Util::weaken ($seek_and_destroy{$key});
+ weaken ($seek_and_destroy{$key});
}
END {