I am debugging a large program I didn't write. At some point in the code, it prints GLOB(0xstuff) a bunch of times. The stuff is a hex number, presumably a mem address on my computer.
I am wondering what kind of structure one has to print in order to get this result. I tried printing references without dereferencing them, but that gets me HASH(0xstuff) ARRAY(0xstuff) and SCALAR(0xstuff), depending on what kind of reference I use.
I am running 5.8.1 on Redhat 9, though the code was originally written under 5.6.x on Redhat 7.3.
Please give me a hint, like some sample code that prints this type of output, or refer me to the correct section of TFM (I couldn't find it in perldoc).
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.