summaryrefslogtreecommitdiff
path: root/lib/locale.t
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-16 13:55:09 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-21 10:02:54 -0700
commitf07538a5ede83b76aa73e872c7900cfb683089be (patch)
tree5619f20db0fbf33dc5aface7c2e326de108c2b5f /lib/locale.t
parent1f5852c969db5b977086aaf398b760ea030b021f (diff)
downloadperl-f07538a5ede83b76aa73e872c7900cfb683089be.tar.gz
locale.t: In-line function to its only call
This will be needed in future commits
Diffstat (limited to 'lib/locale.t')
-rw-r--r--lib/locale.t7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/locale.t b/lib/locale.t
index 0312eb362f..b8436bfa92 100644
--- a/lib/locale.t
+++ b/lib/locale.t
@@ -337,10 +337,6 @@ my @Locale;
my $Locale;
my @Alnum_;
-sub getalnum_ {
- sort grep /\w/, map { chr } 0..255
-}
-
sub trylocale {
my $locale = shift;
return if grep { $locale eq $_ } @Locale;
@@ -510,7 +506,8 @@ foreach $Locale (@Locale) {
next;
}
- @Alnum_ = getalnum_();
+ @Alnum_ = sort grep /\w/, map { chr } 0..255;
+
debug "# w = ", join("",@Alnum_), "\n";
# Sieve the uppercase and the lowercase.