7.2.14 Env - Import Environment Variablesuse Env; # import all possible variables use Env qw(PATH HOME TERM); # import only specified variables
Perl maintains environment variables in a pseudo-associative array
named
The
If you supply arguments when invoking After an environment variable is tied, you can use it like a normal variable. You may access its value: @path = split(/:/, $PATH); or modify it any way you like: $PATH .= ":."; To remove a tied environment variable from the environment, make it the undefined value: undef $PATH;
Note that the corresponding operation performed directly against
delete $ENV{PATH}; |
|