Merge branch 'master' of http://repo.or.cz/r/msysgit into devel
[msysgit/historical-msysgit.git] / lib / perl5 / 5.6.1 / importenv.pl
blobc28ffd054d4a4582bca7a6dffa54df1881df9900
1 ;# $RCSfile: importenv.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $
3 ;# This file, when interpreted, pulls the environment into normal variables.
4 ;# Usage:
5 ;# require 'importenv.pl';
6 ;# or
7 ;# #include <importenv.pl>
9 local($tmp,$key) = '';
11 foreach $key (keys(%ENV)) {
12 $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
14 eval $tmp;