Look at the prints for booya and kada: they have 0 and 1 preceding them. Why? Because those are the indices in an array.

In the first dump you gave, the container that held a reference to ['booya', 'kada'] had no interesting type of its own, therefore its stringification was REF (ref-to-a-ref). In the second case, you had an array container, and the first element of the array was a reference to ['booya', 'kada']. The second case, with the 0, should be clear: the 0th element of the array pointed to by \@ary is the anonymous array.

In the second case, there is no index, there's just a straight reference. That is signified by an arrow.

I think this is the kind of thing you either don't worry about, or deduce, or read the source for. :-)


In reply to Re: using the perl debugger... by gaal
in thread 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.