From: Karl Williamson Date: Wed, 5 Sep 2012 16:26:22 +0000 (-0600) Subject: regen/regcharclass.pl: Rename a variable X-Git-Tag: upstream/5.20.0~5452^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a8ca70e2b2f2bbcb16262c5223a444f59bf9d91;p=platform%2Fupstream%2Fperl.git regen/regcharclass.pl: Rename a variable I find it confusing that the array element name is the same as the full array --- diff --git a/regen/regcharclass.pl b/regen/regcharclass.pl index f337729..9b84bd1 100755 --- a/regen/regcharclass.pl +++ b/regen/regcharclass.pl @@ -562,10 +562,10 @@ sub _cond_as_str { } } }; - for my $cond ( @$cond ) { - if ( !@ranges || $cond != $ranges[-1][1] + 1 ) { + for my $condition ( @$cond ) { + if ( !@ranges || $condition != $ranges[-1][1] + 1 ) { $Update->(); - push @ranges, [ $cond, $cond ]; + push @ranges, [ $condition, $condition ]; } else { $ranges[-1][1]++; }