require D::GD 0.07 to avoid prototype mismatch errors
Matt S Trout [Thu, 26 Jul 2012 18:51:54 +0000 (18:51 +0000)]
Changes
lib/Moo/_Utils.pm

diff --git a/Changes b/Changes
index 12ff01c..37ec51e 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,4 @@
+  - require D::GD 0.07 to avoid prototype mismatch errors
   - fix stupid typo in new Sub::Quote section
 
 1.000001 - 2012-07-21
index 2667055..76ba5d9 100644 (file)
@@ -105,7 +105,7 @@ sub STANDARD_DESTROY {
   die $e if $e; # rethrow
 }
 
-if (eval { require_module('Devel::GlobalDestruction') }) {
+if (eval { use_module('Devel::GlobalDestruction', 0.07) }) {
   *_in_global_destruction = \&Devel::GlobalDestruction::in_global_destruction;
 } elsif (defined ${^GLOBAL_PHASE}) {
   eval 'sub _in_global_destruction () { ${^GLOBAL_PHASE} eq q[DESTRUCT] }';