Reputation: 442
Is it possible to return a hash's values as an array reference?
\@{values %hash}
I looked over the perlref document, but didn't see anything relating to this (or if I did, I wasn't able to relate it to my question).
Upvotes: 2
Views: 152
Reputation: 434615
I think you're looking for this:
my $values_ref = [ values %hash ];
Upvotes: 7