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. :-)
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.