>>>>> "Daniel" == Daniel A Ramaley <[email protected]> writes:
Daniel> chdir "/path-to-dir";
You didn't check the success of the chdir. This will ruin your original
current directory if that fails...
Daniel> unlink <*>;
Oops!
The proper solution is rmtree, a function defined in File::Path:
use File::Path;
rmtree('/path-to-dir');
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion