in reply to Re: Testing for readdir failure (Perl-bug)
in thread Testing for readdir failure
You now refer to "perlbug errno test without localizing". Could you characterize how this bug shows up at the Perl (as opposed to the C) level? Is the answer just "readdir sometimes throws warnings and sometimes not", or can it be made more explicit?
In addition to "use warnings", is the following the best I can do for discovering that a problem occurred during a readdir? If not, what would be better?
$! = undef; @a = readdir(D); if ( defined($!) ) { # Process a readdir error }
Finally, will this bug modify how "effective" this code is in recognizing the occurrence of an error on the readdir?
Thanks very much for all your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Testing for readdir failure (Perl-bug)
by rdiez (Acolyte) on Jun 29, 2020 at 14:09 UTC | |
|
Re^3: Testing for readdir failure (Perl-bug)
by LanX (Saint) on May 27, 2013 at 21:50 UTC | |
by Bob Cook (Acolyte) on May 27, 2013 at 22:20 UTC | |
by LanX (Saint) on May 27, 2013 at 23:58 UTC |