Here is the simple answer said without most of the technical language that the other answers gave.

Perl's has an internal naming scheme that involves addresses in machine memory. Humans tend to go cross-eyed when they see names like that, so Perl does a lot of work to make things look like they have names that make some sense to the programmer. With anonymous data structures all that happens is that the programmer tells Perl, "I want this somewhere private" and Perl doesn't bother going through the work of giving it a name for the programmer. However Perl still keeps track of it, just like it does everything else.

(And Perl keeps track of what you still know about, and when you drop the last reference through which you could find that data, Perl goes in and does cleanup. This is called garbage collection.)

So it is anonymous to you, but not to Perl.


In reply to Re (tilly) 1: Anonymous Data Structures: How Do They Work? by tilly
in thread Anonymous Data Structures: How Do They Work? by jonjacobmoon

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.