From: Graham Knop Date: Tue, 30 Apr 2013 13:22:08 +0000 (-0400) Subject: kill each X-Git-Tag: v1.002000~34 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2334229bd1dc776d160b5782f9e0c9b6c658f5d1;p=gitmo%2FMoo.git kill each --- diff --git a/lib/Moo/HandleMoose.pm b/lib/Moo/HandleMoose.pm index 2b861ee..b68d19a 100644 --- a/lib/Moo/HandleMoose.pm +++ b/lib/Moo/HandleMoose.pm @@ -140,7 +140,8 @@ sub inject_real_metaclass_for { } } } - while (my ($meth_name, $meth_code) = each %methods) { + for my $meth_name (keys %methods) { + my $meth_code = $methods{$meth_name}; $meta->add_method($meth_name, $meth_code) if $meth_code; }