rbala has asked for the wisdom of the Perl Monks concerning the following question:
Hi ,
I want to create a file inside a directory , the directory is to be dynamically created based on a variable.
Suppose, if the file is to be C:\Users\temp\file.pl
I am creating the file.pl and directory temp does not exist.
Is there any way to create the temp directory while creating file.pl itself or I have to creat directory first and then create file ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: create directories while creating a file
by toolic (Bishop) on Jan 02, 2013 at 12:20 UTC | |
Re: create directories while creating a file
by tobyink (Canon) on Jan 02, 2013 at 12:51 UTC | |
Re: create directories while creating a file
by ww (Archbishop) on Jan 02, 2013 at 13:00 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom