< Perl Programming < Keywords
The mkdir keyword
mkdir creates a new directory with the name specified by FILENAME with the given MASK for permissions. Without MASK, the value 0777 is taken. Trailing slashed are removed from FILENAME.
mkdir returns true on success and false otherwise. It also and sets $! (errno).
If the operating system supports fchdir(2), a DIRHANDLE or FILEHANDLE can also be used. If this is not the case, an exception is raised.
Syntax
mkdir FILENAME, MASK
mkdir FILENAME
mkdir
Examples
mkdir DataDir\abcweb
chdir | closedir | mkdir | opendir | readdir | rewinddir | rmdir | seekdir | telldir |
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.