http://qs1969.pair.com?node_id=104219

Cybercosis has asked for the wisdom of the Perl Monks concerning the following question:

First, some Background:
Background: For those of you who've been following perllib's development (which isn't, to my knowledge, many), there hasn't been a release since 2.01, and that was some time ago. This is because I wanted to implement all of the features that scalars have (files, shared memory, semaphores, etc.). Well, that isn't entirely true, but it'll work for the moment. While I have most of the scalar abilities implemented, there's one that has been escaping me. This brings me to The Question:

The Question: How does perl create and use directory handles?
I've hunted through the source, and there's no mention of the DIR structure, or its underlying __dirstream structure, which makes sense, since somebody decided to make them opaque (and with good reason). I can't, however, figure out how perl accomplishes it! So, I leave it to you internals gurus (you're braver people than I, Gunga Dinn!).

~Cybercosis

nemo accipere quod non merere

Edit by tye to update title