Problems? Is your data what you think it is? | |
PerlMonks |
perlman:lib:Envby root (Monk) |
on Dec 23, 1999 at 00:49 UTC ( [id://1107]=perlfunc: print w/replies, xml ) | Need Help?? |
lib:EnvSee the current Perl documentation for lib:Env. Here is our local, out-dated (pre-5.6) version: Env - perl module that imports environment variables
use Env; use Env qw(PATH HOME TERM);
Perl maintains environment variables in a pseudo-hash named
%ENV. For when this access method is inconvenient, the
Perl module
The Env::import() function ties environment variables with suitable names
to global Perl variables with the same names. By default it does so with
all existing environment variables ( After an environment variable is tied, merely use it like a normal variable. You may access its value
@path = split(/:/, $PATH); or modify it
$PATH .= ":."; however you'd like. To remove a tied environment variable from the environment, assign it the undefined value
undef $PATH;
AUTHORChip Salzenberg <chip@fin.uucp> |
|