avoid useless constant in void context by using !1 for falseh
Yuval Kogman [Fri, 22 Aug 2008 03:32:51 +0000 (03:32 +0000)]
lib/Class/MOP.pm

index 1204a2e..0e9723b 100644 (file)
@@ -28,7 +28,7 @@ BEGIN {
         require Devel::GlobalDestruction;
         Devel::GlobalDestruction->import("in_global_destruction");
         1;
-    } or *in_global_destruction = sub () { '' };
+    } or *in_global_destruction = sub () { !1 };
 }