From: Tokuhiro Matsuno Date: Thu, 4 Dec 2008 16:07:40 +0000 (+0000) Subject: do not use same variable name twice. X-Git-Tag: 0.19~136^2~40 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ca3bebbd17ab60180dd0e722f43fd29be9b80f06;p=gitmo%2FMouse.git do not use same variable name twice. --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index 11bc7e5..aee0a7f 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -158,9 +158,9 @@ sub _generate_BUILDALL { push @code, q{no strict 'refs';}; push @code, q{no warnings 'once';}; no strict 'refs'; - for my $class ($meta->linearized_isa) { - if (*{ $class . '::BUILD' }{CODE}) { - push @code, qq{${class}::BUILD->(\$instance, \$args);}; + for my $klass ($meta->linearized_isa) { + if (*{ $klass . '::BUILD' }{CODE}) { + push @code, qq{${klass}::BUILD->(\$instance, \$args);}; } } return join "\n", @code;