Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Sorting complex data

by duelafn (Vicar)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018651]
help
Chatterbox?
[choroba]: layer's observation?
[choroba]: laywer
[choroba]: lawyer
[choroba]: what's wrong with my figners?

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-04-27 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (508 votes). Check out past polls.