From: Yuval Kogman Date: Fri, 22 Aug 2008 03:32:51 +0000 (+0000) Subject: avoid useless constant in void context by using !1 for falseh X-Git-Tag: 0.64_03~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3fe042dfbc438aebc1ef3821d206ace5650e5cf2;p=gitmo%2FClass-MOP.git avoid useless constant in void context by using !1 for falseh --- diff --git a/lib/Class/MOP.pm b/lib/Class/MOP.pm index 1204a2e..0e9723b 100644 --- a/lib/Class/MOP.pm +++ b/lib/Class/MOP.pm @@ -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 }; }