%xyz is a hash. In it, under the key stored in $item[1], lives a values which is an anonymous hash ( { } ). In that anonymous hash, under the key is, an anonymous array ([ ]) is stored, which is dererferenced with the construct @{ }. See perlref.

To that anonymous array, the content of another anonymous array is pushed, which is stored at slot 4 of the array @item.

Or, said as comments to the code,

#!/usr/bin/perl use Data::Dumper; $Data::Dumper::Indent = 1; my (@item, %xyz); $item[1] = 'some key'; $item[3] = [ qw(foo bar quux) ]; push # push to an array - which is @{ # a dereferenced anonymous array which lives $xyz{ # in the hash %xyz, under the key stored in $item[1] # element 2 of the array @item } # inside that keys value which is an {is} # anonymous hash, there under the key 'is' }, # - push to that array - @{ # the contents of an anonymous array $item[3] # stored as element 4 in the array @item }; print Data::Dumper->Dump([\%xyz] , [qw( xyz )]); print Data::Dumper->Dump([\@item], [qw( item )]); __END__ $xyz = { 'some key' => { 'is' => [ 'foo', 'bar', 'quux' ] } }; $item = [ undef, 'some key', undef, [ 'foo', 'bar', 'quux' ] ];

In reply to Re: unclear what this means by shmem
in thread unclear what this means by desertman

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.