Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Fetch array of values from hashref

by haukex (Chancellor)
on Sep 11, 2019 at 07:39 UTC ( #11106005=note: print w/replies, xml ) Need Help??


in reply to Re: Fetch array of values from hashref
in thread Fetch array of values from hashref

But for your problem, more clear solution would be:
my @ar = values %$h;

However, note this form is not equivalent: the order of the returned values will be random.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11106005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2019-10-21 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?