in reply to mkdir mode troubles
The "mask" argument to perlfunc:mkdir must be an *octal number*, so that leading 0 is important (tells Perl it's an octal, not a decimal, value).
Try it with '0777' instead and see what happens.
If you're the owner of those directories (which you should be), change their permissions on the command line with chmod -R 0755 Online_library/*. You can also use chmod within Perl (but mind the octal numbers!).
Finally, I'd bet the '??' goes away if you chomp each line before you feed it to mkdir.
HTH.
perl -e 'print "How sweet does a rose smell? "; chomp $n = <STDIN>; $r +ose = "smells sweet to degree $n"; *other_name = *rose; print "$other +_name\n"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mkdir mode troubles
by merlyn (Sage) on May 15, 2001 at 18:15 UTC | |
|
(tye)Re: mkdir mode troubles
by tye (Sage) on May 15, 2001 at 21:25 UTC |