X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FCarp.pm;fp=lib%2FDBIx%2FClass%2FCarp.pm;h=62170ff821675c578fd5c40cb2ac3bc92899b892;hb=90cfe42b94a798be8ee5498fd57e2e76adff5156;hp=e2af539e5b92895f0e5947bf19374ae5a0bab37b;hpb=0e773352a9c6c034dfb2526b8d68bf6ac1e2323b;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Carp.pm b/lib/DBIx/Class/Carp.pm index e2af539..62170ff 100644 --- a/lib/DBIx/Class/Carp.pm +++ b/lib/DBIx/Class/Carp.pm @@ -44,6 +44,13 @@ my $warn = sub { ); }; +# FIXME - see below +BEGIN { + *__BROKEN_NC = ($] < 5.008003) + ? sub () { 1 } + : sub () { 0 } + ; +} sub import { my (undef, $skip_pattern) = @_; my $into = caller; @@ -91,7 +98,11 @@ sub import { }; # cleanup after ourselves - namespace::clean->import(-cleanee => $into, qw/carp carp_once carp_unique/); + 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 __BROKEN_NC(); } sub unimport {