diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-06 23:58:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-06 23:58:48 +0000 |
commit | 6be8f7a639aa6b6c116e29c11f6b58a558cf0865 (patch) | |
tree | 15fe75d73bdd81c0a6a78f6c3c2c64acbf02b6d3 /vms | |
parent | e3f494f1ad12aae0db4dead20ca74fde31e03266 (diff) | |
download | perl-6be8f7a639aa6b6c116e29c11f6b58a558cf0865.tar.gz |
%ENV note tweaks from Dan Sugalski.
p4raw-id: //depot/perl@7583
Diffstat (limited to 'vms')
-rw-r--r-- | vms/perlvms.pod | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/vms/perlvms.pod b/vms/perlvms.pod index 25058bc902..f43cbb0e46 100644 --- a/vms/perlvms.pod +++ b/vms/perlvms.pod @@ -788,11 +788,13 @@ by saying (You can't just say C<$ENV{$key} = $ENV{$key}>, since the Perl optimizer is smart enough to elide the expression.) -Don't try to clear C<%ENV> by saying C<%ENV = ();> Bad things will -happen because parts of C<%ENV> are per-process, parts of it are -per-group, and parts of it are system-wide. Without some serious -rights, it won't work, or with the rights, it does, but the system -will effectively die. +Don't try to clear C<%ENV> by saying C<%ENV = ();>, it will throw +a fatal error. This is equivalent to doing the following from DCL: + + DELETE/LOGICAL * + +You can imagine how bad things would be if, for example, the SYS$MANAGER +or SYS$SYSTEM logicals were deleted. At present, the first time you iterate over %ENV using C<keys>, or C<values>, you will incur a time penalty as all |