Perl Home
PERL Functions
© 2011 TutorialsPoint.COM
|
PERL umask Function
Syntax
Definition and Usage
Sets the umask (default mask applied when creating files and directories) for the current process. Value of EXPR must be an octal number. If EXPR is omitted, simply returns the previous value.
Return Value
Example
#!/usr/bin/perl -w
print("The current umask is: ", umask(), "\n");
|
It will produce following results, you can get different result on your computer based on your setting.
|

|
|
|