mkdir mkdir filename, mode Creates the directory specified by filename, with permissions specified by the numeric mode (as modified by the current umask). If it succeeds, it returns ; otherwise, it returns and sets $! (from the value of errno).