From: Toby Inkster Date: Fri, 15 Feb 2013 11:48:24 +0000 (+0000) Subject: fix conflict with two lexical variables called $spec X-Git-Tag: v1.001000~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f73677ccd78e2fff0669e0bda3dd7b4028722c54;p=gitmo%2FMoo.git fix conflict with two lexical variables called $spec --- diff --git a/lib/Method/Generate/Accessor.pm b/lib/Method/Generate/Accessor.pm index ab697f7..10b4ea6 100644 --- a/lib/Method/Generate/Accessor.pm +++ b/lib/Method/Generate/Accessor.pm @@ -179,8 +179,8 @@ sub generate_method { die "You gave me a handles of ${hspec} and I have no idea why"; } }; - foreach my $spec (@specs) { - my ($proxy, $target, @args) = @$spec; + foreach my $delegation_spec (@specs) { + my ($proxy, $target, @args) = @$delegation_spec; _die_overwrite($into, $proxy, 'a delegation') if !$spec->{allow_overwrite} && *{_getglob("${into}::${proxy}")}{CODE}; $self->{captures} = {};