This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix a typo in #3725.
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 25 Jul 1999 16:24:55 +0000 (16:24 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sun, 25 Jul 1999 16:24:55 +0000 (16:24 +0000)
p4raw-id: //depot/cfgperl@3743

utils/perlbug.PL

index c25eec0..78d3f42 100644 (file)
@@ -530,9 +530,11 @@ EOF
     my @env =
         qw(PATH LD_LIBRARY_PATH LANG PERL_BADLANG SHELL HOME LOGDIR LANGUAGE);
     push @env, $Config{ldlibpthname} if $Config{ldlibpthname} ne '';
-    for my $env (sort @env,
-                     grep /^(?:PERL|LC_)/, keys %ENV)
-    ) {
+    push @env, grep /^(?:PERL|LC_|LANG)/, keys %ENV;
+    my %env;
+    @env{@env} = @env;
+    for my $env (sort keys %env) {
+    {
        print OUT "    $env",
                exists $ENV{$env} ? "=$ENV{$env}" : ' (unset)',
                "\n";