in reply to Re: "not enough arguments" with 'mkdir' command
in thread "not enough arguments" with 'mkdir' command

I tried both 777 and 0777. But I get the error when I don't supply the mask. Here's the entire error message:
Not enough arguments for mkdir at ./test_file.pl line 3, near "'ding'; +" Execution of ./test_file.pl aborted due to compilation errors.
The entire program is just one line.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff";
$nysus = $PM . $MCF;
Click here if you love Perl Monks

Replies are listed 'Best First'.
Re: Re: Re: "not enough arguments" with 'mkdir' command
by sauoq (Abbot) on Dec 09, 2003 at 00:52 UTC
    The entire program is just one line.

    Can you show us that one line then?

    Does

    perl -e "mkdir q(foobar), 0777"
    work for you?

    Update: Changed to include umask as jsprat's comment is correct.

    -sauoq
    "My two cents aren't worth a dime.";
    
      Yeah, here's the line:
      mkdir 'ding';
      I also get an error with your line:
      syntax error at ./test_file.pl line 3, near "perl -e " Execution of ./test_file.pl aborted due to compilation errors.

      $PM = "Perl Monk's";
      $MCF = "Most Clueless Friar Abbot Bishop Pontiff";
      $nysus = $PM . $MCF;
      Click here if you love Perl Monks