in reply to rfc: safely creating path/to/file
use File::Path; mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711); [download]
*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.