in reply to Avoiding making a directory that already exists
Scottmy $newdir = "$directory\/$month\/$day" if (!(-e $newdir)) { mkdir $newdir, 0755 or die "couldn't mkdir $newdir because: $!\n"; }
updated per tilly's suggestion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Avoiding making a directory that already exists
by tilly (Archbishop) on Aug 19, 2001 at 22:21 UTC |