Consider using File::Find::Rule::DirectoryEmpty which inherits File::Find::Rule to recursively find empty directories:
use strict; use warnings; use File::Find::Rule::DirectoryEmpty; my $dir = 'C:/Temp/'; my @emptydirs = File::Find::Rule->directoryempty->in($dir); print "$_\n" for @emptydirs;
Hope this helps!
In reply to Re: Can File:Find be used to find empty dirs?
by Kenosis
in thread Can File:Find be used to find empty dirs?
by PerlPlay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |