loris has asked for the wisdom of the Perl Monks concerning the following question:
I came across Re: "mkdir -p" equivalent? which contains the following:
system mkdir => '-p' => @dirs;
which I didn't understand. So I looked at perlop but didn't really understand that either. However, even without working out what was going on, I thought either
system mkdir => '-m 775 -p' => @dirs;
or
system mkdir => '-m 775' => '-p' => @dirs;
would work, but neither does. Both produce
mkdir: invalid mode
Can anyone shed a little light on what is going on here?
Yours benightedly,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to build system calls using '=>'
by Perl Mouse (Chaplain) on Dec 14, 2005 at 13:18 UTC | |
|
Re: How to build system calls using '=>'
by Corion (Patriarch) on Dec 14, 2005 at 13:14 UTC | |
|
Re: How to build system calls using '=>'
by serf (Chaplain) on Dec 14, 2005 at 14:00 UTC | |
by Perl Mouse (Chaplain) on Dec 14, 2005 at 14:21 UTC | |
by serf (Chaplain) on Dec 14, 2005 at 15:45 UTC | |
by Perl Mouse (Chaplain) on Dec 14, 2005 at 16:40 UTC | |
by Anonymous Monk on Apr 17, 2009 at 16:34 UTC |