![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^2: Testing for readdir failureby eye (Chaplain) |
on Apr 21, 2013 at 12:14 UTC ( #1029756=note: print w/replies, xml ) | Need Help?? |
From the documentation, it is not clear that readdir returns an error in $!.
Another approach would be to stat the directory and verify that the link count matches the number of file names returned. That seems likely to catch an error, though not to identify the cause.
In Section
Seekers of Perl Wisdom
|
|