The umask is an attribute of the process (like its current working directory or nice level) and is manipulated by the system call of the same name. It's not related to the process' environment.</pedant>
(Well, it is part of the process' environment, but it's not contained in %ENV or char *env or what have you . . . :)
Update: And I just noticed, umask returns the previous value when you call it so you could just do my $old_umask = umask 077; in one swell foop.</nit>
In reply to Re^2: Permission problem in creating directory!
by Fletch
in thread Permission problem in creating directory!
by madtoperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |