http://www.perlmonks.org?node_id=1011257


in reply to create directories while creating a file

I don't think so, but you could create a function for yourself to emulate that behavior. File::Path::make_path can help.