my $num; chdir $dir_to_check; $num++ while <*>; print "There are still files in $dir_to_check\n" if $num;
Update Used a better glob.
In reply to Re: checking to see if a directory is empty
by friedo
in thread checking to see if a directory is empty
by drum1981
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |