From: Fuji Goro Date: Tue, 4 Oct 2011 00:00:03 +0000 (-0700) Subject: Resolve RT #70569: Prototype mismatch: sub Mouse::Util::get_linear_isa($;$) vs none... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b2571a4be42103261fe21bc843069784f99359ae;p=gitmo%2FMouse.git Resolve RT #70569: Prototype mismatch: sub Mouse::Util::get_linear_isa($;$) vs none at Mouse/Util.pm line 131 --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index fc2292a..ee422b7 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -80,7 +80,8 @@ BEGIN{ # definition of mro::get_linear_isa() my $get_linear_isa; - if (eval { require mro }) { + if ($] >= 5.010_000) { + require mro; $get_linear_isa = \&mro::get_linear_isa; } else {