namespace env
Provides access to the enviroment the script runs in
namespace attributes
[
NB. highlighted items are covered in other pages - namespaces or classes
]
toArray()
- Get a hash of key,value pairs from the environment
read()
- Read an environmental string
write()
- Write an environment variable
del()
- Delete a value from the environment
Functions
function
toArray
Get a hash of key,value pairs from the environment
Declaration:
native function toArray()
Returns:
An array of the environment
function
read
Read an environmental string
Declaration:
native function read( string key )
Parameters:
Parameter #1: string
key
- The key to read from the environment, eg. HOME, USER
Returns:
The value of the environment variable key
function
write
Write an environment variable
Declaration:
native function write( string key, string value )
Parameters:
Parameter #1: string
key
- The key to write
Parameter #2: string
value
- The value to write to the key
function
del
Delete a value from the environment
Declaration:
native function del( string key )
Parameters:
Parameter #1: string
key
- The value to delete
Automatically generated at
8:45pm, Wednesday 08 January 2003
by
feritedoc
.