Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Unknown entries in %main::

by theorbtwo (Prior)
on Dec 18, 2002 at 03:43 UTC ( #220754=note: print w/ replies, xml ) Need Help??


in reply to Unknown entries in %main::

"Funny characters" are generaly control characters, in this case the $^foo family of vars. You're seeing $^H as it really is, Control-H, also known as backspace or "". (If you zoom up your font size a bit, you should see that as a block with a circular hole in the middle (reversed bullet), not a "no such character" glyph.) $^H, as perlvar will tell you, gives the hints to the compiler for things like strict and warnings. You're also seeing $^R and $^X -- apparenly the other control-character vars aren't package vars in Main.

Oh, my test script: perl -le "foreach (keys %::) {print qq{$_ -- \\c}.chr(ord($_)+64)}" > foo.txt. Oh, and the \cX is only valid where X is a capital letter. I was too lazy to test for that myself.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


Comment on Re: Unknown entries in %main::
Download Code
Re: Re: Unknown entries in %main::
by jerrygarciuh (Curate) on Dec 18, 2002 at 04:04 UTC
    Thank you kindly!
    jg
    _____________________________________________________
    "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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://220754]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-08-31 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls