|Subject:||mkpath fails on UNC paths (windows)|
mkpath attempts to create each path in turn starting at the root, but it fails to recognise that this is impossible for UNC paths. Example: mkpath("//server/share/some/path") will fail because it first tries mkdir("//server") (and of course "//server" is not, and never can be, the name of a directory). Instead, it should start trying at either "//server/share" or more likely "//server/share/some". The error reported is: "mkdir //server: Invalid argument; the filename, directory name, or volume label syntax is incorrect". The same also applies to mkpath("\\\\server\\share\\some\\path"). This was tested with Strawberry perl 5.12.3, and IIRC has also been seen on ActiveState perl (not sure what version, sorry).