Scottmy $newdir = "$directory\/$month\/$day" if (!(-e $newdir)) { mkdir $newdir, 0755 or die "couldn't mkdir $newdir because: $!\n"; }
updated per tilly's suggestion.
In reply to Re: Avoiding making a directory that already exists
by scain
in thread Avoiding making a directory that already exists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |