X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fimportenv.pl;h=0401127f18652c9df663c4031bf5747c3fbbdd84;hb=97a504ba76c612b4a75b812be186d7ed5f1593ef;hp=d56f32633b889e8e07aff6a0f37ffe269da41c8c;hpb=79072805bf63abe5b5978b5928ab00d360ea3e7f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/importenv.pl b/lib/importenv.pl index d56f326..0401127 100644 --- a/lib/importenv.pl +++ b/lib/importenv.pl @@ -1,5 +1,3 @@ -;# $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: ;# require 'importenv.pl'; @@ -8,7 +6,7 @@ local($tmp,$key) = ''; -foreach $key (keys(ENV)) { +foreach $key (keys(%ENV)) { $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/; } eval $tmp;