From: Chris Prather Date: Thu, 30 Apr 2009 04:04:58 +0000 (-0400) Subject: fix accidental exports X-Git-Tag: 0.77~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5d399b5d404f98d2c5351c2f66e121372ac41c47;p=gitmo%2FMoose.git fix accidental exports --- diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 974908d..f33901a 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -5,7 +5,7 @@ use strict; use warnings; use Scalar::Util; -use Devel::GlobalDestruction qw(in_global_destruction); +use Devel::GlobalDestruction (); use if ( not our $__mx_is_compiled ), 'Moose::Meta::Class'; use if ( not our $__mx_is_compiled ), metaclass => 'Moose::Meta::Class'; @@ -82,12 +82,12 @@ sub DESTROY { # localize the $@ ... local $@; # run DEMOLISHALL ourselves, ... - $_[0]->DEMOLISHALL(in_global_destruction); + $_[0]->DEMOLISHALL(Devel::GlobalDestruction::in_global_destruction); # and return ... return; } # otherwise it is normal destruction - $_[0]->DEMOLISHALL(in_global_destruction); + $_[0]->DEMOLISHALL(Devel::GlobalDestruction::in_global_destruction); } # support for UNIVERSAL::DOES ...