cleanup require usage so we don't trample on $@ and tweak the DEMOLISH code slightly
[gitmo/Role-Tiny.git] / lib / Moo / _mro.pm
index 7c932a4..1cfa949 100644 (file)
@@ -1,6 +1,8 @@
 package Moo::_mro;
 
-if ($] > 5.010) {
+local $@;
+
+if ($] >= 5.010) {
   require mro;
 } else {
   require MRO::Compat;