in reply to recursive mkdir

I think the best way would be the mkpath() function from File::Path.