I just noticed your purpose. I recommend that if you want to
create a directory if it's missing, just go ahead and call the
mkdir operator every time the program runs. The mkdir
may fail if the directory is there, but who cares? It's not like
there's any penalty for setting $!. :-)