[Chapter 3] 3.2.179 umask
Author: Larry Wall, Tom Christiansen & Randal L. Schwartz
Date: 1999-07-02T01:55:56Z

#

| Chapter 3 Functions |

### 3.2.179 umask

    umask EXPR
    umask

This function sets the umask for the process and returns the old one. (The umask tells UNIX which permission bits to disallow when creating a file.) If `EXPR` is omitted, the function merely returns the current umask. For example, to ensure that the "other" bits are turned on, and the "user" bits are turned off, try something like:

    umask((umask() & 077) | 7);

3.2.178 ucfirst |  | 3.2.180 undef