Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]

Method getenv()


Method getenv

string getenv(string varname)
mapping(string:string) getenv()

Description

When called with no arguments, a mapping with all current environment variables will be returned. Destructive opreations on the mapping will not affect the internal environment representation.

If the varname argument has been given, the value of the environment variable with the name varname will be returned. If no such environment variable exists, 0 (zero) will be returned.

On NT the environment variable name is case insensitive.