The behavior of mkdir on Win32 confuses me. If you try to make a directory within a directory that doesn't exist, mkdir will fail with a "no such file or directory" error. The DOS mkdir, however, makes the directory along with all the ones above it, as you (or at least I) would expect. Is there some trick to it, or does DOS actually have one up on Perl this time?