From: Daisuke Maki Date: Wed, 3 Dec 2008 08:17:27 +0000 (+0000) Subject: attempt to require MRO::Compat. If that fails, use our own X-Git-Tag: 0.19~136^2~54 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=214c3ab9b0479e8f35939fccab99e2e02c2111b4;p=gitmo%2FMouse.git attempt to require MRO::Compat. If that fails, use our own --- diff --git a/lib/Mouse/Util.pm b/lib/Mouse/Util.pm index 4c194fd..28a9125 100644 --- a/lib/Mouse/Util.pm +++ b/lib/Mouse/Util.pm @@ -64,7 +64,7 @@ BEGIN { }; } - if (defined &mro::get_linear_isa) { + if (defined &mro::get_linear_isa || eval { require MRO::Compat; 1; }) { *get_linear_isa = \&mro::get_linear_isa; } else { # this recurses so it isn't pretty