X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDestructor.pm;fp=lib%2FMouse%2FMeta%2FMethod%2FDestructor.pm;h=8cf502ba2dd38215efd5ba2082da7e47bb7b59ae;hp=220151a4a4db86be465fc5bcd7d75ecc9e55863c;hb=401ad01dfcf1b35b9e2fb3ce73dbcec2de543ff7;hpb=22be7db2e5caf8f32b4e875b7da0e26b6a65f837 diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index 220151a..8cf502b 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -1,7 +1,7 @@ package Mouse::Meta::Method::Destructor; use Mouse::Util qw(:meta); # enables strict and warnings -use constant _MOUSE_DEBUG => !!$ENV{MOUSE_DEBUG}; +use constant _MOUSE_DEBUG => $ENV{MOUSE_DEBUG} ? 1 : 0; sub _generate_destructor{ my (undef, $metaclass) = @_;