in reply to create directories while creating a file
OTOH, as toolic suggested, you could create a dir and THEN create/store the file there and do both WITHIN a rather simple script. See perldoc -f mkdir for a function rather than a module.
You're on your own re the file creation though; you've provided insufficient info.
|
|---|