This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_hv_placeholders_get() actually takes a const HV *hv.
[perl5.git] / lib / importenv.pl
CommitLineData
378cc40b
LW
1;# This file, when interpreted, pulls the environment into normal variables.
2;# Usage:
154e51a4 3;# require 'importenv.pl';
378cc40b
LW
4;# or
5;# #include <importenv.pl>
6
7local($tmp,$key) = '';
8
8ebc5c01 9foreach $key (keys(%ENV)) {
378cc40b
LW
10 $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
11}
12eval $tmp;
a687059c
LW
13
141;