in reply to mkdir problem on windows

lamp, you can make use of File::Path

mkpath (['test1/test2'],1,0711);

Prasad