in reply to Avoiding making a directory that already exists

I think you were thinking right. Probably the simplest is:
mkdir("$directory/$month/$day", 0755) unless -d "$directory/$month/$day";
Take a look at the docs on filetest operators.

HTH

Replies are listed 'Best First'.
Re: Re: Avoiding making a directory that already exists
by Anonymous Monk on Aug 19, 2001 at 22:38 UTC
    this is what I needed :) thx