Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: json::xs arrays

by NetWallah (Canon)
on Mar 29, 2017 at 14:09 UTC ( [id://1186381]=note: print w/replies, xml ) Need Help??


in reply to json::xs arrays

It may be easier to conceptualize, if you pull out a group of data, then extract from that:
my $del_info_0 = $responde->{data_info}{del_info}[0]; my ($names,$age,$location) = @{$del_info_0}{qw|names age location|}; # + Hash-ref slice my $country = $location->[0]{country};
Here is an intro to references.

        ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

Replies are listed 'Best First'.
Re^2: json::xs arrays
by bigup401 (Pilgrim) on Mar 29, 2017 at 15:24 UTC

    ARRAY<0X1ec64bc> thats the response

      Show us your code .. What did you try to print ?
      Which part got that response ?

              ...it is unhealthy to remain near things that are in the process of blowing up.     man page for WARP, by Larry Wall

        its the example u gave me which produce that error

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found