From: Brandon L Black Date: Mon, 4 Jun 2007 04:15:43 +0000 (+0000) Subject: load mro.pm under 5.9.5+, since next::method, etc will have to move there X-Git-Tag: 0.03~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0f01303cd92ae9bb1dd74265ab69918825842b84;p=gitmo%2FMRO-Compat.git load mro.pm under 5.9.5+, since next::method, etc will have to move there --- diff --git a/lib/MRO/Compat.pm b/lib/MRO/Compat.pm index fc2d58c..0dfb5f9 100644 --- a/lib/MRO/Compat.pm +++ b/lib/MRO/Compat.pm @@ -32,8 +32,9 @@ BEGIN { } } - # Provide no-op Class::C3::.*initialize() funcs for 5.9.5+ + # Load mro.pm and provide no-op Class::C3::.*initialize() funcs for 5.9.5+ else { + require mro; no warnings 'redefine'; *Class::C3::initialize = sub { 1 }; *Class::C3::reinitialize = sub { 1 };