use File::Path; mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711); [download]
In reply to Re: rfc: safely creating path/to/file by Thelonius in thread rfc: safely creating path/to/file by thpfft