in reply to rfc: safely creating path/to/file

use File::Path; mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);

Replies are listed 'Best First'.
Re: Re: rfc: safely creating path/to/file
by thpfft (Chaplain) on Oct 24, 2002 at 19:39 UTC

    *cough*. Thank you.

    clever of it to work down from the leaf rather than out from trunk, as it were. Very economical, and takes advantage of the cross-platform code in File::Basename.

    sound of crumped paper hitting bin.