diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-03 12:15:45 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-05-03 12:15:45 +0000 |
commit | 491873e5975978ffc50c5af79581657c3f0e3068 (patch) | |
tree | d2c27afeaac941d5f317d8dfb19b25914919415b /pod/perlfunc.pod | |
parent | 87f4a7b253858acc72094bac97b22c3f9126c030 (diff) | |
download | perl-491873e5975978ffc50c5af79581657c3f0e3068.tar.gz |
mkdir without arguments now defaults to $_
p4raw-id: //depot/perl@24378
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 79ebdf9a0e..81a42c2ab3 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2687,10 +2687,13 @@ and you get list of anonymous hashes each with only 1 entry. =item mkdir FILENAME +=item mkdir + Creates the directory specified by FILENAME, with permissions specified by MASK (as modified by C<umask>). If it succeeds it returns true, otherwise it returns false and sets C<$!> (errno). -If omitted, MASK defaults to 0777. +If omitted, MASK defaults to 0777. If omitted, FILENAME defaults +to C<$_>. In general, it is better to create directories with permissive MASK, and let the user modify that with their C<umask>, than it is to supply |