http://qs321.pair.com?node_id=313392


in reply to "not enough arguments" with 'mkdir' command

I see a lot of responses talking about this argument as the "mask" argument. That's the "mode" argument, or "permission mode" to be a little more verbose.

Perhaps the confusion is that the bits of the "umask" are cleared out of this value, per normal Unix policy on creating new files and directories. If it was a "mask", what is it masking? {grin}

And yes, this was mandatory in Perl 2 through Perl 5.5, and became optional in Perl 5.6.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re: •Re: "not enough arguments" with 'mkdir' command
by jsprat (Curate) on Dec 09, 2003 at 19:33 UTC
    That's the "mode" argument, or "permission mode" to be a little more verbose.

    I agree that the argument should be named "mode", but that's not how it is documented. In 5.8's perlfunc:

    mkdir FILENAME,MASK mkdir FILENAME

    Note: in 5.005, it was called mode.