summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-06-12 11:46:18 +0100
committerNicholas Clark <nick@ccl4.org>2011-06-12 11:46:18 +0100
commite972d31587e248817bac11667cbd2f6014c03454 (patch)
tree6e6b2975fe5c11a60435ecdee75177a17d2ffb5f
parentbfa148846b45a72a2fce2b0d1bbd85743ed3d081 (diff)
downloadperl-e972d31587e248817bac11667cbd2f6014c03454.tar.gz
In regen/mg_vtable.pl, move $longest inside the only block that uses it.
-rw-r--r--regen/mg_vtable.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/regen/mg_vtable.pl b/regen/mg_vtable.pl
index 3d242116a9..bea64ed1cd 100644
--- a/regen/mg_vtable.pl
+++ b/regen/mg_vtable.pl
@@ -155,11 +155,6 @@ print $vt <<'EOH';
EOH
-my $longest = 0;
-foreach (keys %mg) {
- $longest = length $_ if length $_ > $longest;
-}
-
# Of course, it would be *much* easier if we could output this table directly
# here and now. However, for our sins, we try to support EBCDIC, which wouldn't
# be *so* bad, except that there are (at least) 3 EBCDIC charset variants, and
@@ -170,6 +165,11 @@ foreach (keys %mg) {
# predictable)
{
+ my $longest = 0;
+ foreach (keys %mg) {
+ $longest = length $_ if length $_ > $longest;
+ }
+
my $longest_p1 = $longest + 1;
my %mg_order;