in reply to Testing for readdir failure

this should catch all kind of problems, that Perl is aware of!

eval { # catch fatals use warnings FATAL => 'all'; # die instead of warn print scalar readdir($dh); }; warn "--- $@" if $@; # report error

HTH!

Cheers Rolf

( addicted to the Perl Programming Language)