1N/A;# $RCSfile: importenv.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $
1N/A
1N/A;# This file, when interpreted, pulls the environment into normal variables.
1N/A;# Usage:
1N/A;# require 'importenv.pl';
1N/A;# or
1N/A;# #include <importenv.pl>
1N/A
1N/Alocal($tmp,$key) = '';
1N/A
1N/Aforeach $key (keys(%ENV)) {
1N/A $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
1N/A}
1N/Aeval $tmp;
1N/A
1N/A1;