This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Evade using @ in the 1 liner with some perl 1 syntax.
[perl5.git]
/
lib
/
importenv.pl
diff --git
a/lib/importenv.pl
b/lib/importenv.pl
index
d56f326
..
c28ffd0
100644
(file)
--- a/
lib/importenv.pl
+++ b/
lib/importenv.pl
@@
-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;