Yes, that's a very good point, thanks. At least on Linux (and probably Windows), I believe even empty directories should return the list ('..', '.'), but your point that the error checking is lacking is still correct. Anyway, myfdopendir is probably better in that respect, I was just less sure on whether I got code for the Perl internals right on that one.
In reply to Re^4: readdir() on a sysopen() handle?
by haukex
in thread readdir() on a sysopen() handle?
by perlhuhn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |