in reply to sorting an array of hashes and removing duplicates
-enlilmy %seen; my @sortthetutors = grep { !$seen{$_->{tutorsID}}++ } sort { $a->{tmiles} <=> $b->{tmiles} } @tutorsdata;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sorting an array of hashes and removing duplicates
by jmfees (Initiate) on Apr 02, 2010 at 08:51 UTC |