NAME
src/pmc/env.pmc - System Environment
DESCRIPTION
Env is a singleton class which provides access to the system environment.
Methods
- void *get_pointer()
- void set_pointer(void *ptr)These two functions are part of the singleton creation interface.
For more information see src/pmc.c.
- PMC *get_iter()Returns a new iterator for the environment.
This method is questionable,
as environ is not in ISO-C.
- INTVAL elements()Returns the number of elements in the environment.
This method is questionable,
as environ is not in ISO-C.
- INTVAL get_bool()Returns whether the environment has any elements.
- INTVAL get_integer()Returns the size of the hash.
- FLOATVAL get_number()Returns the size of the hash.
- STRING *get_string_keyed(PMC *key)Returns the Parrot string value for the environment variable
- STRING *get_string_keyed_int(PMC *key)Returns the Parrot string value for the environment variable at position
- STRING *get_pmc_keyed(PMC *key)Returns a String PMC for the environment variable
- void set_string_keyed(PMC *key, STRING *value)Sets the environment variable
- void set_pmc_keyed(PMC *key, PMC *value)Sets the environment variable
- INTVAL exists_keyed(PMC *key)Returns whether the environment variable for
- void delete_keyed(PMC *key)Deletes the environment variable for
*key.
pos.Used during iteration.
*key.
*key to *value.
*key to *value.
*key exists.
*key.SEE ALSO
PDD - http://docs.parrot.org/parrot/latest/html/docs/pdds/pdd17_pmc.pod.html#Hash_types
Environment in Perl 6 - http://dev.perl.org/perl6/rfc/318.html
Module for Perl 5 - http://search.cpan.org/~stas/Env-C-0.06/
