in reply to Complex sort of array of hashes into an array of arrays
I have read your post about a dozen times, and I still can't understand what you are trying to do, and if I can't then most other monks here won't either
I think you need to explain a bit further what you are trying to achieve. Can I suggest you post 20 lines or so of raw data, and then the same data sorted by hand in the way you want.
There is almost certainly a simple solution to this using sort, and passing a code block to it.
my @sorted = sort { $a->{$foo}[$bar] <=> $b->{$foo}[$bar] } @raw_data;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Complex sort of array of hashes into an array of arrays
by BioJL (Initiate) on Nov 23, 2010 at 15:46 UTC | |
by kennethk (Abbot) on Nov 23, 2010 at 16:09 UTC | |
by Anonymous Monk on Nov 23, 2010 at 16:09 UTC |