X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fimportenv.pl;h=c28ffd054d4a4582bca7a6dffa54df1881df9900;hb=cc8461762c7674cd719f8f7e4a4e54252a249ef9;hp=c321a20219aaa836389690c837217b34dec665ae;hpb=a687059cbaf2c6fdccb5e0fae2aee80ec15625a8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/importenv.pl b/lib/importenv.pl index c321a20..c28ffd0 100644 --- a/lib/importenv.pl +++ b/lib/importenv.pl @@ -1,14 +1,14 @@ -;# $Header: importenv.pl,v 3.0 89/10/18 15:19:39 lwall Locked $ +;# $RCSfile: importenv.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $ ;# This file, when interpreted, pulls the environment into normal variables. ;# Usage: -;# do 'importenv.pl'; +;# require 'importenv.pl'; ;# or ;# #include local($tmp,$key) = ''; -foreach $key (keys(ENV)) { +foreach $key (keys(%ENV)) { $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/; } eval $tmp;