After realizing my mistake in perlbug: seekdir/readdir broken on win32 on 5.008009, 5.012002, 5.014001 with some help, new code
sub dirEmpty { return !! eval { opendir my($d), @_ or die $!; my $file ; $file = readdir $d for 1..3; defined $file; }; }
In reply to Re^3: How to tell if a Directory is Empty
by Anonymous Monk
in thread How to tell if a Directory is Empty
by ishootperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |