[Chapter 3] 3.2.92 mkdir
Author: Larry Wall, Tom Christiansen & Randal L. Schwartz
Date: 1999-07-02T01:51:25Z

#

| Chapter 3 Functions |

### 3.2.92 mkdir

    mkdir FILENAME, MODE

This function creates the directory specified by `FILENAME`, with permissions specified by the numeric `MODE` (as modified by the current umask). If it succeeds it returns 1, otherwise it returns 0 and sets $! (from the value of `errno`).

If mkdir(2) is not built in to your C library, Perl emulates it by calling the mkdir(1) program. If you are creating a long list of directories on such a system it will be more efficient to call the mkdir program yourself with the list of directories to avoid starting zillions of subprocesses.

3.2.91 map |  | 3.2.93 msgctl