in reply to Avoiding making a directory that already exists

Well, you haven't given us much to go on, but it sounds like you have the right idea:
my $newdir = "$directory\/$month\/$day" if (!(-e $newdir)) { mkdir $newdir, 0755 or die "couldn't mkdir $newdir because: $!\n"; }
Scott

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
    Please add $! to the error check. Very often knowing what the operating system thinks is wrong can make your life much, much easier...