use File::Find; finddepth( sub { (-d) ? rmdir : unlink }, $directory);
But I would recommend using File::Remove as per my example.
gav^
In reply to Re: Answer: How do I delete a directory without emptying it first?
by gav^
in thread How do I delete a directory without emptying it first?
by Adam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |