No such thing as a small change | |
PerlMonks |
Re: File Permissionsby bikeNomad (Priest) |
on Jul 22, 2001 at 22:52 UTC ( [id://98854]=note: print w/replies, xml ) | Need Help?? |
There is a per-process setting called umask that serves to reset permission bits. In your case, the umask is apparently 0113. Just use the perl umask built-in to change this for your process (only need to do it once):
However, do you really want rwx permissions for everyone? update: Randal's right; I assumed that umask worked on chmod too, but it doesn't.
In Section
Seekers of Perl Wisdom
|
|