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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.