From: Shawn M Moore Date: Wed, 3 Dec 2008 04:06:25 +0000 (+0000) Subject: Better variable names X-Git-Tag: 0.19~136^2~67 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f262f14e4f739820c2a6d43b63041c68cf411774;p=gitmo%2FMouse.git Better variable names --- diff --git a/lib/Mouse/Meta/Method/Constructor.pm b/lib/Mouse/Meta/Method/Constructor.pm index 103cd31..11bc7e5 100644 --- a/lib/Mouse/Meta/Method/Constructor.pm +++ b/lib/Mouse/Meta/Method/Constructor.pm @@ -37,7 +37,7 @@ sub _generate_processattrs { my $from = $attr->init_arg; my $key = $attr->name; - my $part1 = do { + my $set_value = do { my @code; if ($attr->should_coerce) { @@ -64,7 +64,7 @@ sub _generate_processattrs { join "\n", @code; }; - my $part2 = do { + my $make_default_value = do { my @code; if ( $attr->has_default || $attr->has_builder ) { @@ -119,9 +119,9 @@ sub _generate_processattrs { { my \$attr = \$attrs[$index]; if (exists(\$args->{'$from'})) { - $part1; + $set_value; } else { - $part2; + $make_default_value; } } ...