my $old_dir = '/path/to/old_dir'; my $result = system("rm -rf $old_dir"); print "Result: $result\n";
It will delete directories with or without files.
In reply to Re: How to delete non-empty directory
by Khen1950fx
in thread How to delete non-empty directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |