in reply to Re^3: File::Path::rmtree: What am I not grokking?
in thread File::Path::rmtree: What am I not grokking?

The point was that I didn't want to hardcode alpha. I wanted to supply the same, single variable to rmfromtop as I did to mkpath. And just as mkpath was creating a whole tree, I wanted a function to delete that same whole tree. Since this will be used in a testing context, I'm going to be creating the tree, verifying that I created it, deleting the tree, and verifying that I deleted it.

jimk

Replies are listed 'Best First'.
Re^5: File::Path::rmtree: What am I not grokking?
by Aristotle (Chancellor) on Nov 03, 2005 at 18:46 UTC

    But you have to splitdirs anyway in order to remove all components, so why not simply rmtree +( splitdirs $partial )[ 0 ]? That has the exact same effect.

    Makeshifts last the longest.