Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Sorting complex data

by duelafn (Priest)
on Feb 13, 2013 at 22:43 UTC ( #1018651=note: print w/ replies, xml ) Need Help??


in reply to Sorting complex data

I like Sort::Key for this:

use Sort::Key qw/ nkeysort /; foreach ( nkeysort { $_->{id} } @{$json_response->{report}} ) { # ... }

Good Day,
    Dean


Comment on Re: Sorting complex data
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2015-08-02 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (2 votes), past polls