$ ls foo ls: foo: No such file or directory $ perl -MFile::Path -e 'mkpath "foo/bar/baz"' $ ls -d foo/bar/baz foo/bar/baz/