projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f0510bd
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP.pm
b/lib/Class/MOP.pm
index
1204a2e
..
0e9723b
100644
(file)
--- 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 };
}