Take a look at the docs on filetest operators.mkdir("$directory/$month/$day", 0755) unless -d "$directory/$month/$day";
HTH
In reply to Re: Avoiding making a directory that already exists
by VSarkiss
in thread Avoiding making a directory that already exists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |