Perl-Sensitive Sunglasses | |
PerlMonks |
Re: mkdir with variable maskby ctilmes (Vicar) |
on Jan 26, 2009 at 15:46 UTC ( [id://738964]=note: print w/replies, xml ) | Need Help?? |
I want to create a directory and give it the same permissions as its parent.
Just to go back a step... Why do you want to give it the same permissions as its parent? Not to say you don't have a good reason, but in general things just work as they ought if you just make the directory and let the OS follow the user's umask and make the directory with defaults. By explicitly setting permissions, you are often overriding things that the OS and user have set.
In Section
Seekers of Perl Wisdom
|
|