Need parens on this sub now.
Dave Rolsky [Wed, 3 Sep 2008 17:09:22 +0000 (17:09 +0000)]
lib/Class/MOP/Class.pm

index f6eb55f..9136f86 100644 (file)
@@ -212,7 +212,7 @@ sub check_metaclass_compatability {
     sub DESTROY {
         my $self = shift;
 
-        return if Class::MOP::in_global_destruction; # it'll happen soon anyway and this just makes things more complicated
+        return if Class::MOP::in_global_destruction(); # it'll happen soon anyway and this just makes things more complicated
 
         no warnings 'uninitialized';
         return unless $self->name =~ /^$ANON_CLASS_PREFIX/;