perl 3.0: (no announcement message available)
[p5sagit/p5-mst-13.2.git] / lib / importenv.pl
CommitLineData
a687059c 1;# $Header: importenv.pl,v 3.0 89/10/18 15:19:39 lwall Locked $
378cc40b 2
3;# This file, when interpreted, pulls the environment into normal variables.
4;# Usage:
5;# do 'importenv.pl';
6;# or
7;# #include <importenv.pl>
8
9local($tmp,$key) = '';
10
11foreach $key (keys(ENV)) {
12 $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
13}
14eval $tmp;
a687059c 15
161;