summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-09-22 20:07:12 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2001-09-25 17:05:19 +0000
commit35ae6b54cb5a8d6a9ce74c7f818c7d62df4ac621 (patch)
treefa5a208bd09f6ab902095a80f0db07f745b8fc8e /pod
parent037dbc56b912d3669ebd9c450f65ad1f94de2ee1 (diff)
downloadperl-35ae6b54cb5a8d6a9ce74c7f818c7d62df4ac621.tar.gz
Deprecating chdir(undef)/chdir('')
Message-ID: <20010923000712.A7005@blackrider> p4raw-id: //depot/perl@12203
Diffstat (limited to 'pod')
-rw-r--r--pod/perl572delta.pod4
-rw-r--r--pod/perldiag.pod10
2 files changed, 14 insertions, 0 deletions
diff --git a/pod/perl572delta.pod b/pod/perl572delta.pod
index 6b0a6446c8..bfe44c46e9 100644
--- a/pod/perl572delta.pod
+++ b/pod/perl572delta.pod
@@ -100,6 +100,10 @@ deprecated. Its semantics were never that clear and its
implementation even less so. If you have used that feature to
disallow all but fully qualified variables, C<use strict;> instead.
+The chdir(undef) and chdir('') behaviors to match chdir() has been
+deprecated. In future versions, chdir(undef) and chdir('') will
+simply fail.
+
=head1 Core Enhancements
In general a lot of fixing has happened in the area of Perl's
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index c0fff95554..7408d2fc1e 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3853,6 +3853,16 @@ if you wish to use an empty line as the terminator of the here-document.
(D deprecated) You are now encouraged to use the shorter *glob{IO} form
to access the filehandle slot within a typeglob.
+=item Use of chdir('') or chdir(undef) as chdir() deprecated
+
+(D deprecated) chdir() with no arguments is documented to change to
+$ENV{HOME} or $ENV{LOGDIR}. chdir(undef) and chdir('') share this
+behavior, but that has been deprecated. In future versions they
+will simply fail.
+
+Be careful to check that what you pass to chdir() is defined and not
+blank, else you might find yourself in your home directory.
+
=item Use of implicit split to @_ is deprecated
(D deprecated) It makes a lot of work for the compiler when you clobber