in reply to Getting deep with mkdir

This is the expected behavior of the mkdir() function. You can use the mkpath() call from File::Path to create more than one level of directories at a time.

Michael