Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Testing for readdir failure

by eye (Chaplain)
on Apr 21, 2013 at 04:37 UTC ( #1029705=note: print w/ replies, xml ) Need Help??


in reply to Testing for readdir failure

This seems to be a somewhat opaque area in the documentation.

Have you tried testing the return value of closedir? If it reports a failure, that is probably indicative of a failure in the readdir call. Of course, I don't have a good way of testing this, either.

Also, it is good practice to use a lexically scoped variable for the directory handle rather than a bare word.


Comment on Re: Testing for readdir failure

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029705]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (14)
As of 2015-07-28 18:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls