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.
In Section
Seekers of Perl Wisdom
in reply to create directories while creating a file