I changed it to also print out the values, and am delighted to find:
# on cygwin perl -e 'print "$_ => $::{$_}\n" for keys %::' __OUTPUT__ / => *main::/ stderr => *main::stderr _<.\win32.c => *main::_<.\win32.c _<perllib.c => *main::_<perllib.c utf8:: => *main::utf8:: " => *main::" CORE:: => *main::CORE:: DynaLoader:: => *main::DynaLoader:: stdout => *main::stdout attributes:: => *main::attributes:: &#8597; => *main::&#8597; stdin => *main::stdin ARGV => *main::ARGV INC => *main::INC ENV => *main::ENV Regexp:: => *main::Regexp:: _<..\perlio.c => *main::_<..\perlio.c UNIVERSAL:: => *main::UNIVERSAL:: $ => *main::$ main:: => *main::main:: - => *main::- Win32:: => *main::Win32:: PerlIO:: => *main::PerlIO:: _<..\universal.c => *main::_<..\universal.c 0 => *main::0 => *main:: @ => *main::@ _<..\xsutils.c => *main::_<..\xsutils.c STDOUT => *main::STDOUT IO:: => *main::IO:: &#8593; => *main::&#8593; _ => *main::_ + => *main::+ STDERR => *main::STDERR Internals:: => *main::Internals:: STDIN => *main::STDIN DB:: => *main::DB:: <none>:: => *main::<none>::
This "confirms" what I read somewhere that the symbol table contains the typeglob of the key, which apparently works for any package. Is there anyway to find out what the typeglobs really are? (i.e, its scalar value, array value, etc.)

In reply to Re: keys %:: by johnnywang
in thread keys %:: by blazar

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.