in reply to How to improve this data structure?
for (sort { $a->{RegionNum} <=> $b->{RegionNum} or $a->{AR} <=> $b->{AR} } grep $_->{RegionNum} == $RegionNum, @StatsArray) { $ARKey = $_->{AR}; # do stuff, no need to check the RegionKey. }
Untested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to improve this data structure?
by fiddler42 (Beadle) on May 21, 2013 at 17:55 UTC |