Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by poj (Abbot)
on Sep 05, 2015 at 16:39 UTC ( #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
Node Status?
node history
Node Type: note [id://1141157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2021-03-05 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (112 votes). Check out past polls.

    Notices?