![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
read closed directory handle?by mkmcconn (Chaplain) |
on Jan 27, 2001 at 02:35 UTC ( #54657=perlquestion: print w/replies, xml ) | Need Help?? |
mkmcconn has asked for the wisdom of the Perl Monks concerning the following question:
Why does this work?
This will read the _closed_ directory handle, without an error, if invoked as % perl test_file (where test_file) contains the above code. But, I just discovered that if I chmod 0755 test_file, the code fails without a warning when invoked directly. So, I'm more confused than ever. What is happening here?
Back to
Seekers of Perl Wisdom
|
|