in reply to "mkdir -p" equivalent?

Check out mkpath in File::Path