diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-01-16 12:53:35 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-01-18 12:08:12 -0700 |
commit | dc28842293d728a4ac52dc5303ee09f31d229946 (patch) | |
tree | a2b3d7ffa5b332c5b815235bbf90ca3268338b97 | |
parent | 40a00cec5c7b0a21471c9e694a3e102421f7f318 (diff) | |
download | perl-dc28842293d728a4ac52dc5303ee09f31d229946.tar.gz |
localet.t: Change variable name
to avoid the ambiguity of 'last'
-rw-r--r-- | lib/locale.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/locale.t b/lib/locale.t index 0c428f9cdc..3c8d8f8137 100644 --- a/lib/locale.t +++ b/lib/locale.t @@ -258,7 +258,7 @@ unless ($have_setlocale) { } # The test number before our first setlocale() -my $last_without_setlocale = $test_num; +my $final_without_setlocale = $test_num; # Find locales. @@ -837,11 +837,11 @@ foreach $Locale (@Locale) { } } -my $last_locales = $have_setlocale ? &last_locales : $last_without_setlocale; +my $last_locales = $have_setlocale ? &last_locales : $final_without_setlocale; # Recount the errors. -foreach ($last_without_setlocale+1..$last_locales) { +foreach ($final_without_setlocale+1..$last_locales) { if ($Problem{$_} || !defined $Okay{$_} || !@{$Okay{$_}}) { if ($_ == 102) { print "# The failure of test 102 is not necessarily fatal.\n"; |