diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-20 17:50:38 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-20 17:50:38 +0000 |
commit | 5a211162cd360449f2dbfb7ca9231c025909353f (patch) | |
tree | cb1e381023629ae2b3d383210f275f479afdb348 /pod | |
parent | 649da0762311e9a19091946020dc56feadc1378c (diff) | |
download | perl-5a211162cd360449f2dbfb7ca9231c025909353f.tar.gz |
default mkdir() mode argument to 0777
p4raw-id: //depot/perl@5164
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 2 | ||||
-rw-r--r-- | pod/perlfunc.pod | 3 |
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 |