[Pdx-pm] mkdir -p ?

Bruce J Keeler bruce at drangle.com
Wed Aug 22 11:52:43 PDT 2007

Keith Lofstrom wrote:
> The dirvish backup script (written in Perl) does a mkdir to make the
> directory where new backups go.  One of the users makes many backups
> per day, and would like to organize those into subtrees.   This
> would be easy if Perl had the equivalent of "mkdir -p ARG" rather
> than just "mkdir ARG". 
> I can think of many ways to fake "mkdir -p" (recursive, system call,
> etc.) but there is probably an elegant way to do it.  Suggestions?
> Keith
Check out mkpath in File::Path.


More information about the Pdx-pm-list mailing list