start page | rating of books | rating of authors | reviews | copyrights

Programming Perl

Programming PerlSearch this book
Previous: 3.2.91 map Chapter 3
Functions
Next: 3.2.93 msgctl
 

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.


Previous: 3.2.91 map Programming Perl Next: 3.2.93 msgctl
3.2.91 map Book Index 3.2.93 msgctl