in reply to mkdir mode troubles
Second, mkdir has a return value -- use it. mkdir||warn is a good place to start.
Third, mkdir takes 777 and combines that with the value from umask to figure out the permissions on newly created directories (it's in the manual page). If you want to be certain, use chmod after creating the directory.
Last, if (after you fix the chomp) you still have ??'s after the directory names being created try printing $_ as you're creating the directories. It may have special characters or ??'s in them.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: mkdir mode troubles
by newatperl (Acolyte) on May 15, 2001 at 04:09 UTC | |
by shotgunefx (Parson) on May 15, 2001 at 04:54 UTC | |
by newatperl (Acolyte) on May 15, 2001 at 05:42 UTC | |
by shotgunefx (Parson) on May 15, 2001 at 12:38 UTC |