Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to get out an array of a hash?

by hexcoder (Curate)
on Aug 03, 2017 at 08:25 UTC ( [id://1196617]=note: print w/replies, xml ) Need Help??


in reply to How to get out an array of a hash?

Hi, you need to change the access to an array reference $hashfeld[1]->{'var2'}. Dereference it in order to get the referenced values .
@array = $hashfeld[1]->{'var2'};
=>
@array = @{$hashfeld[1]->{'var2'}};

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found