use strict;
use warnings;
-# This is here instead of DBIx::Class because of load-order issues
-BEGIN {
- # something is tripping up V::M on 5.8.1, leading to segfaults.
- # A similar test in n::c itself is disabled on 5.8.1 for the same
- # reason. There isn't much motivation to try to find why it happens
- *DBIx::Class::_ENV_::BROKEN_NAMESPACE_CLEAN = ($] < 5.008005)
- ? sub () { 1 }
- : sub () { 0 }
- ;
-}
-
# load Carp early to prevent tickling of the ::Internal stash being
# interpreted as "Carp is already loaded" by some braindead loader
use Carp ();
$msg,
);
};
-
- # cleanup after ourselves
- namespace::clean->import(-cleanee => $into, qw/carp carp_once carp_unique/)
- ## FIXME FIXME FIXME - something is tripping up V::M on 5.8.1, leading
- # to segfaults. When n::c/B::H::EndOfScope is rewritten in terms of tie()
- # see if this starts working
- unless DBIx::Class::_ENV_::BROKEN_NAMESPACE_CLEAN;
}
sub unimport {
use mro 'c3';
use DBIx::Class::Carp '^DBIx::Class|^Class::C3::Componentised';
+use namespace::clean;
# this warns of subtle bugs introduced by UTF8Columns hacky handling of store_column
# if and only if it is placed before something overriding store_column
use strict;
use warnings;
use DBIx::Class::Carp;
+use namespace::clean;
our %_pod_inherit_config =
(
use base 'DBIx::Class';
use DBIx::Class::Carp;
+use namespace::clean;
# not importing first() as it will clash with our own method
use List::Util ();
use strict;
use warnings;
+use base 'DBIx::Class';
+
use DBIx::Class::Carp;
use Try::Tiny;
use Scalar::Util qw/weaken blessed/;
use Devel::GlobalDestruction;
use namespace::clean;
-use base qw/DBIx::Class/;
-
__PACKAGE__->mk_classdata('class_mappings' => {});
__PACKAGE__->mk_classdata('source_registrations' => {});
__PACKAGE__->mk_classdata('storage_type' => '::DBI');
use Storable();
use DBIx::Class::Carp;
+use namespace::clean;
carp 'The Serialize::Storable component is now *DEPRECATED*. It has not '
.'been providing any useful functionality for quite a while, and in fact '
use warnings;
use DBIx::Class::Carp;
+use namespace::clean;
carp 'Setting of storage_type is redundant as connections through DBD::Sybase'
.' are now properly recognized and reblessed into the appropriate subclass'
use mro 'c3';
use DBIx::Class::Carp;
+use namespace::clean;
=head1 NAME
for my $name (keys %all_method_like) {
- next if ( DBIx::Class::_ENV_::BROKEN_NAMESPACE_CLEAN and $name =~ /^carp(?:_unique|_once)?$/ );
-
# overload is a funky thing - it is not cleaned, and its imports are named funny
next if $name =~ /^\(/;
}
}
- next if DBIx::Class::_ENV_::BROKEN_NAMESPACE_CLEAN;
-
# some common import names (these should never ever be methods)
for my $f (qw/carp carp_once carp_unique croak confess cluck try catch finally/) {
if ($mod->can($f)) {