Cross Reference: importenv.pl
xref
: /
osnet-11
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
lib
/
importenv.pl
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
1
N/A
;
# $RCSfile:
importenv.pl
,v $$Revision: 4.1 $$Date: 92/08/07 18:24:02 $
1
N/A
1
N/A
;
# This file, when interpreted, pulls the environment into normal variables.
1
N/A
;
# Usage:
1
N/A
;
# require '
importenv.pl
';
1
N/A
;
# or
1
N/A
;
# #include <
importenv.pl
>
1
N/A
1
N/A
local
($
tmp
,$
key
) =
''
;
1
N/A
1
N/A
foreach
$
key
(
keys
(%
ENV
)) {
1
N/A
$
tmp
.=
"\$$key = \$ENV{'$key'};"
if
$
key
=~ /^[A-
Za
-z]\w*$/;
1
N/A
}
1
N/A
eval
$
tmp
;
1
N/A
1
N/A
1
;