Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: "not enough arguments" with 'mkdir' command

by nysus (Parson)
on Dec 09, 2003 at 00:48 UTC ( [id://313326]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://313326]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found