Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
356 B

  1. ;# $RCSfile: importenv.pl,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $
  2. ;# This file, when interpreted, pulls the environment into normal variables.
  3. ;# Usage:
  4. ;# require 'importenv.pl';
  5. ;# or
  6. ;# #include <importenv.pl>
  7. local($tmp,$key) = '';
  8. foreach $key (keys(%ENV)) {
  9. $tmp .= "\$$key = \$ENV{'$key'};" if $key =~ /^[A-Za-z]\w*$/;
  10. }
  11. eval $tmp;
  12. 1;