Note that there is actually TWO different types of content for IO that differ only slightly in internal storage, but a lot in behavior. There are open files (including sockets and scalar-IO) and open directories. The difference is invisible from the outside:

$ perl -MDP -we'open DH,$0;DDump*DH' SV = PVGV(0x11d7dc0) at 0x76a5e0 REFCNT = 3 FLAGS = (MULTI) NAME = "DH" NAMELEN = 2 GvSTASH = 0x74af48 "main" GP = 0x771bc0 SV = 0x0 REFCNT = 1 IO = 0x76a5f8 FORM = 0x0 AV = 0x0 HV = 0x0 CV = 0x0 CVGEN = 0x0 LINE = 1 FILE = "-e" FLAGS = 0x2 EGV = 0x76a5e0 "DH" $ perl -MDP -we'opendir DH,".";DDump*DH' SV = PVGV(0x11d7e00) at 0x76a5f0 REFCNT = 3 FLAGS = (MULTI) NAME = "DH" NAMELEN = 2 GvSTASH = 0x74af48 "main" GP = 0x771b30 SV = 0x0 REFCNT = 1 IO = 0x76a620 FORM = 0x0 AV = 0x0 HV = 0x0 CV = 0x0 CVGEN = 0x0 LINE = 1 FILE = "-e" FLAGS = 0x2 EGV = 0x76a5f0 "DH"

Enjoy, Have FUN! H.Merijn

In reply to Re^2: Where to find info on low level perl internals names? by Tux
in thread Where to find info on low level perl internals names? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.