Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You left off a bit:
    ... or die "mkpath: Boom!";
    • The reason I did not do this is it doesn't work. mkpath returns a list of the directories created, not a success or failure. And if you run the program a second time, you get back an empty list (false) because the directory is already created.

      I like jplindstrom's approach, although in my case I immediately execute a chdir or die, which has more or less the same effect.

      --
      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers