use Path::Class qw(dir); dir("foo", "bar")->mkpath; [download]
In reply to Re: Perl API that emulates mkdir -p on unix? by wolv in thread Perl API that emulates mkdir -p on unix? by Anonymous Monk