diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-01-16 12:53:35 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-01-21 10:02:53 -0700 |
commit | 66330f13dcaadca5415f34c49e4d1cd9b1ef8301 (patch) | |
tree | 1145fb6001a09890d7993099c3eac11c1e5b7589 /lib/locale.t | |
parent | 9c11bb3cf05df9ae834853f3c81592f1d7df9deb (diff) | |
download | perl-66330f13dcaadca5415f34c49e4d1cd9b1ef8301.tar.gz |
localet.t: Change variable name
to avoid the ambiguity of 'last'
Diffstat (limited to 'lib/locale.t')
-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"; |