summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-20 17:50:38 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-20 17:50:38 +0000
commit5a211162cd360449f2dbfb7ca9231c025909353f (patch)
treecb1e381023629ae2b3d383210f275f479afdb348 /pod
parent649da0762311e9a19091946020dc56feadc1378c (diff)
downloadperl-5a211162cd360449f2dbfb7ca9231c025909353f.tar.gz
default mkdir() mode argument to 0777
p4raw-id: //depot/perl@5164
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod2
-rw-r--r--pod/perlfunc.pod3
2 files changed, 4 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index d87d08512c..d660f9495e 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1188,7 +1188,7 @@ If you need to represent those character sequences inside a regular
expression character class, just quote the square brackets with the
backslash: "\[=" and "=\]".
-=item chmod: mode argument is missing initial 0
+=item chmod() mode argument is missing initial 0
(W) A novice will sometimes say
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 6b47fc7a41..5de9dc7947 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -2417,9 +2417,12 @@ the original list for which the BLOCK or EXPR evaluates to true.
=item mkdir FILENAME,MASK
+=item mkdir FILENAME
+
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.
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