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)
In reply to Re: Testing for readdir failure
by LanX
in thread Testing for readdir failure
by Bob Cook
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |