in reply to How to access system environment variables?
You may be interested in the perlvar documentation.print "Path = ", $ENV{PATH}, "\n"; $ENV{PATH} .= ";c:\temp"; # add c:\temp to it
Not sure how it works under Windows, but under Unix these changes are not global and only survive for the life of your script and its children.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: How to access system environment variables?
by myocom (Deacon) on Oct 06, 2000 at 01:08 UTC |