Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^3: JSON and Perl Objects - How to access data?

by poj (Abbot)
on Sep 05, 2015 at 16:39 UTC ( [id://1141157]=note: print w/replies, xml ) Need Help??


in reply to Re^2: JSON and Perl Objects - How to access data?
in thread JSON and Perl Objects - How to access data?

Use map
my @names = map { $_->{name} } @inventors_array ; my @id = map { $_->{id} } @inventors_array ; my %names = map { $_->{id}, $_->{name} } @inventors_array;
poj

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found