X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDestructor.pm;h=a2941b35f3b9e363c0ef8321dd2b13c7cad8edd1;hb=4353bfe169e0ca10723b6da1085b7ce0220c212e;hp=60cc49e144b402a63d4a5eaa08577da77be28a7d;hpb=06a970ab9fb60a4cac5e3f1774cf9a2914c94cc1;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index 60cc49e..a2941b3 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -13,6 +13,7 @@ sub _generate_destructor{ my $demolishall = ''; for my $class ($metaclass->linearized_isa) { no strict 'refs'; + no warnings 'once'; if (*{$class . '::DEMOLISH'}{CODE}) { $demolishall .= "${class}::DEMOLISH(\$self);\n"; }