in reply to Empty Folders
If you don't mind going to the shell...
my @empty_directories = `find $dir -type d -empty -print`;
If you do mind going to the shell, you could use File::Find with a wanted function that checks directories for emptiness (opendir, readdir, see what's there).
|
|---|