Because of this line in File::Path's POD:
It returns a list of all directories (including intermediates, determined using the Unix '/' separator) created.
That raises a concern that I'd have to pass mkpath a UNIX-style path -- the snippet I posted will accept any form supported by File::Spec::Functions. I like that better.
A collection of thoughts and links from the minds of geeks
The Code that can be seen is not the true Code
I haven't found a problem yet that can't be solved by a well-placed trebuchet