diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-06-12 11:46:18 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-06-12 11:46:18 +0100 |
commit | e972d31587e248817bac11667cbd2f6014c03454 (patch) | |
tree | 6e6b2975fe5c11a60435ecdee75177a17d2ffb5f /regen/mg_vtable.pl | |
parent | bfa148846b45a72a2fce2b0d1bbd85743ed3d081 (diff) | |
download | perl-e972d31587e248817bac11667cbd2f6014c03454.tar.gz |
In regen/mg_vtable.pl, move $longest inside the only block that uses it.
Diffstat (limited to 'regen/mg_vtable.pl')
-rw-r--r-- | regen/mg_vtable.pl | 10 |
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; |