Hi,
you can use mkdir with system(), but M$ mkdir does not understand forward slashes. It only takes Windows paths with baskslashes. In Perl again, you need to escape the backslash. Also, the -p switch is a Unix parameter:
$foldername = "Test1\\Test2"; #double backslash!
system "mkdir $foldername";