X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fimportenv.pl;h=0401127f18652c9df663c4031bf5747c3fbbdd84;hb=7fa8fd0b55ac97c02c8f3171c520b066aaf1bf7d;hp=c321a20219aaa836389690c837217b34dec665ae;hpb=a687059cbaf2c6fdccb5e0fae2aee80ec15625a8;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/importenv.pl b/lib/importenv.pl index c321a20..0401127 100644 --- a/lib/importenv.pl +++ b/lib/importenv.pl @@ -1,14 +1,12 @@ -;# $Header: importenv.pl,v 3.0 89/10/18 15:19:39 lwall Locked $ - ;# 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;