summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-28 18:03:28 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-28 18:03:28 +0000
commit0bfc1ec4be2c76cee8aace7737f6fec3baae5189 (patch)
tree3d52a3bcff3a30fad3c2ce953771e7183256749b /pod/perlfunc.pod
parentf8dbba82d8d4daa10a152121c099318e33dde811 (diff)
downloadperl-0bfc1ec4be2c76cee8aace7737f6fec3baae5189.tar.gz
document what chdir() without an argument does (from Mark-Jason
Dominus <mjd@plover.com>) p4raw-id: //depot/perl@4925
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 4 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 905c444e5e..060bb641e9 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -539,8 +539,10 @@ previous time C<caller> was called.
=item chdir EXPR
Changes the working directory to EXPR, if possible. If EXPR is omitted,
-changes to the user's home directory. Returns true upon success,
-false otherwise. See the example under C<die>.
+changes to the directory specified by C<$ENV{HOME}>, if set; if not,
+changes to the directory specified by C<$ENV{LOGDIR}>. If neither is
+set, C<chdir> does nothing. It returns true upon success, false
+otherwise. See the example under C<die>.
=item chmod LIST