in reply to mkdir problem on windows

Yes, the core module File::Path - mkpath method can create subdirectories.