in reply to doubts in references

update : taken into account davorg's remarks.

Internally, a hash table can be thought of a sort a "special" list. That means the following hash
%hash = ('test' => '24', 'blah' => '253');
can be equivalent to
@hash = ('test', '24', 'blah', '253');

BTW, => is equivalent to , here.

So if you understand that a hash is a special representation for an list, then you expression does the following :
That is, you convert an hash to a array using the references.

HTH

--
zejames

Replies are listed 'Best First'.
Re^2: doubts in reference
by davorg (Chancellor) on Sep 27, 2004 at 11:50 UTC

    I'm not really sure where slices come into it. I think you may have meant "list" instead of "slice".

    A hash can be created from a list of key/value pairs. And a hash evaluated in list context returns that same list (tho' perhaps in a different order). Slices don't enter into in at all.

    Please be a little more careful with your terminology.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg