File handles and directory handles are stored in different slots of the glob. From Perl's perspective, the problem isn't that the provided handle is the wrong kinda of handle; the problem is that the provided glob didn't contain a dir handle.
In reply to Re^4: "readdir() attempted on invalid dirhandle" error?
by ikegami
in thread "readdir() attempted on invalid dirhandle" error?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |