Programming Perl

Programming PerlSearch this book
Previous: 3.2.91 mapChapter 3
Next: 3.2.93 msgctl

3.2.92 mkdir


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.

Previous: 3.2.91 mapProgramming PerlNext: 3.2.93 msgctl
3.2.91 mapBook Index3.2.93 msgctl