This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Evade using @ in the 1 liner with some perl 1 syntax.
[perl5.git] / lib / importenv.pl
index d56f326..c28ffd0 100644 (file)
@@ -8,7 +8,7 @@
 
 local($tmp,$key) = '';
 
-foreach $key (keys(ENV)) {
+foreach $key (keys(%ENV)) {
     $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
 }
 eval $tmp;