the two following bits of code produce to different outputs when the main variable '%args' is viewed with the 'x' command in the debugger.

i'm hoping that someone can explain what i'm seeing.

run a script with the following code

my %args; $args{'expr'} = \['booya' 'kada'];
then perform 'x \%args'...you'll see this:
DB<2> x \%args 0 HASH(0x1cb3778) 'expr' => REF(0x1a35d54) -> ARRAY(0x1ca0124) (WHY AN ARROW?) 0 'booya' 1 'kada'
then run the followin in a script:
my %args; my @ary; @ary = ['booya', 'kada']; $args{'expr'} = \@ary;
in this case 'x \%args' produces:
DB<3> x \%args 0 HASH(0x1cb3778) 'expr' => ARRAY(0x1cb3844) 0 ARRAY(0x1cea068) (WHY A ZERO?) 0 'booya' 1 'kada'
so my question is this: what to the ARROW & ZERO signify and what is the difference. i'm guessing its related to anonymity, but i don't know and i believe there is a gem of knowledge here i don't want to lose.

i suppose a second question is this: where could i have found this answer myself - any documentation that explains debugger command outputs (in detail).

thanks in advance, nebbish


In reply to using the perl debugger... by nebbish

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.