Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Fellow monks,
While trying to learn more about the symbol table I printed out %main:: in a script whose only imported package was strict. The code and it's output are below, can anyone tell me what the mystery entries are on lines 5, 11, and 14 of the output text? Apparently the standard windows charset doesn't represent them?
TIA
jg
#!/usr/bin/perl -w use strict; while (my ($k, $v) = each %::) { print "key is $k, value is $v\n"; } key is STDOUT, value is *main::STDOUT key is @, value is *main::@ key is ARGV, value is *main::ARGV key is STDIN, value is *main::STDIN key is , value is *main:: key is attributes::, value is *main::attributes:: key is DB::, value is *main::DB:: key is _<..\xsutils.c, value is *main::_<..\xsutils.c key is _<perllib.c, value is *main::_<perllib.c key is UNIVERSAL::, value is *main::UNIVERSAL:: key is , value is *main:: key is <none>::, value is *main::<none>:: key is DynaLoader::, value is *main::DynaLoader:: key is , value is *main:: key is Win32::, value is *main::Win32:: key is BEGIN, value is *main::BEGIN key is stderr, value is *main::stderr key is INC, value is *main::INC key is _, value is *main::_ key is ", value is *main::" key is _<.\win32.c, value is *main::_<.\win32.c key is $, value is *main::$ key is stdout, value is *main::stdout key is IO::, value is *main::IO:: key is ENV, value is *main::ENV key is strict::, value is *main::strict:: key is stdin, value is *main::stdin key is CORE::, value is *main::CORE:: key is /, value is *main::/ key is 0, value is *main::0 key is _<..\universal.c, value is *main::_<..\universal.c key is STDERR, value is *main::STDERR key is main::, value is *main::main::

_____________________________________________________
"The man who grasps principles can successfully select his own methods.
The man who tries methods, ignoring principles, is sure to have trouble.
~ Ralph Waldo Emerson

In reply to Unknown entries in %main:: by jerrygarciuh

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found