extra code in pp_concat, Take 2
[p5sagit/p5-mst-13.2.git] / lib / importenv.pl
CommitLineData
79072805 1;# $RCSfile: importenv.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $
378cc40b 2
3;# This file, when interpreted, pulls the environment into normal variables.
4;# Usage:
154e51a4 5;# require 'importenv.pl';
378cc40b 6;# or
7;# #include <importenv.pl>
8
9local($tmp,$key) = '';
10
8ebc5c01 11foreach $key (keys(%ENV)) {
378cc40b 12 $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
13}
14eval $tmp;
a687059c 15
161;