From: Matt S Trout Date: Wed, 20 Jun 2012 18:04:40 +0000 (+0000) Subject: squelch redefine warnings in the coderef installation code X-Git-Tag: v0.091009~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eda5c714219243d2953b2d65a63fbfc4aefeec18;p=gitmo%2FMoo.git squelch redefine warnings in the coderef installation code --- diff --git a/Changes b/Changes index 8858f07..b7f9389 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ + - squelch redefine warnings in the coderef installation code + 0.091008 - 2012-06-19 - bump Role::Tiny dependency to get working modifiers under composition - handle "has '+foo'" for attrs from superclass or consumed role diff --git a/lib/Moo/_Utils.pm b/lib/Moo/_Utils.pm index 24fe665..e6a0420 100644 --- a/lib/Moo/_Utils.pm +++ b/lib/Moo/_Utils.pm @@ -65,6 +65,7 @@ sub _get_linear_isa { } sub _install_coderef { + no warnings 'redefine'; *{_getglob($_[0])} = _name_coderef(@_); }