in reply to Re: Avoiding making a directory that already exists
in thread Avoiding making a directory that already exists

Please add $! to the error check. Very often knowing what the operating system thinks is wrong can make your life much, much easier...
  • Comment on Re (tilly) 2: Avoiding making a directory that already exists