diff options
author | Michael G. Schwern <schwern@pobox.com> | 2001-09-22 20:07:12 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-09-25 17:05:19 +0000 |
commit | 35ae6b54cb5a8d6a9ce74c7f818c7d62df4ac621 (patch) | |
tree | fa5a208bd09f6ab902095a80f0db07f745b8fc8e /pod/perldiag.pod | |
parent | 037dbc56b912d3669ebd9c450f65ad1f94de2ee1 (diff) | |
download | perl-35ae6b54cb5a8d6a9ce74c7f818c7d62df4ac621.tar.gz |
Deprecating chdir(undef)/chdir('')
Message-ID: <20010923000712.A7005@blackrider>
p4raw-id: //depot/perl@12203
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 10 |
1 files changed, 10 insertions, 0 deletions
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 |