in reply to Re^2: Creating Multiple Empty Directories with Perl
in thread Creating Multiple Empty Directories with Perl

You know, I asked myself the same question when I saw the other replies. I guess I forgot it was there! I always use File::Path out of laziness. Who wants to worry about how many levels need to be created?

-sam

  • Comment on Re^3: Creating Multiple Empty Directories with Perl

Replies are listed 'Best First'.
Re^4: Creating Multiple Empty Directories with Perl
by ikegami (Patriarch) on Sep 28, 2005 at 06:52 UTC

    True. Then the following would suffice:

    perl -MFile::Path -e 'mkpath("dir$_") for 1..20'