in reply to Re: Where to find info on low level perl internals names?
in thread Where to find info on low level perl internals names?

GV is a "glob", short for "typeglob", as in "a bunch of types". They are used as symbol table entries, although they can exist outside the symbol table, so they aren't necessarily global. open my $fh, ... populates $fh with a reference to a "non-global" glob.

Replies are listed 'Best First'.
Re^3: Where to find info on low level perl internals names?
by BrowserUk (Patriarch) on Oct 25, 2011 at 22:19 UTC

    And what do you think the 'glob' in 'typeglob' stands for?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      I figured "glob" actually meant "glob". It really doesn't matter what it stands for, since we're talking about what GV stands for.
        I figured "glob" actually meant "glob".

        As in glob. I think not.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
        =head1 GV Functions

        A GV is a structure which corresponds to to a Perl typeglob, ie *foo. It is a structure that holds a pointer to a scalar, an array, a hash etc, corresponding to $foo, @foo, %foo.

        GVs are usually found as values in stashes (symbol table hashes) where Perl stores its global variables. =cut

        Game, set, and match!


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.