newatperl has asked for the wisdom of the Perl Monks concerning the following question:
PUB_CAT just contains a list of names of directories. The script worked in that these directories were created, however, all the directories were saved as 411, meaning that I don't even have access to change them or read or write to them. Also, when I look at the directories via telnet, they appear to be the file name i wanted with two extra guestion marks at the end, so that mydirectory looks like mydirectory??open PUB_CAT, 'pub_cat.txt' or die "Can't open file: $!\n"; foreach (<PUB_CAT>) { mkdir "../Online_Library/$_", 777; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mkdir mode troubles
by chromatic (Archbishop) on May 15, 2001 at 02:46 UTC | |
|
Re: mkdir mode troubles
by arturo (Vicar) on May 15, 2001 at 02:46 UTC | |
by merlyn (Sage) on May 15, 2001 at 18:15 UTC | |
by tye (Sage) on May 15, 2001 at 21:25 UTC | |
|
Re: mkdir mode troubles
by clintp (Curate) on May 15, 2001 at 02:50 UTC | |
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 | |
|
Re: mkdir mode troubles
by mr.nick (Chaplain) on May 15, 2001 at 02:47 UTC |