Jump to content

Perl Programming/Keywords/umask

From Wikibooks, open books for an open world
Previous: ucfirst Keywords Next: undef

The umask keyword

[edit | edit source]

umask sets the umask for the process to EXPRESSION, and it returns the previous value. Without EXPRESSION, it only returns the current umask. The permission bits of rwxr-x--- is represented as three octal digits.

Syntax

[edit | edit source]
  umask EXPRESSION
  umask
Previous: ucfirst Keywords Next: undef