Of course you're right this is nonsense!
I just copied the open() || die pattern, even with the wrong or operator.
Forget what I said, your version of testing '$!' in the next line should be fine!
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^5: Testing for readdir failure (Perl-bug)
by LanX
in thread Testing for readdir failure
by Bob Cook
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |