On Wed, Jul 17, 2002 at 04:53:50PM -0400, Mike Egglestone wrote: > What would be a nice command to remove a dirtory that had files in it? > Even better.... what would be a nice command to delete all files > in one directory... (leaving the directory intact)
#!/usr/bin/perl -w
use File::Path;
rmtree("some/dir", 0, 1);
=pod
man File::Path
=cut
Cheers,
Joost

