in reply to complicated sorting issue
my @sorted_values = map { $_->[0] } sort { $a->[2] cmp $b->[2] || $a->[1] cmp $b->[1] } map { my ($x, $y) = /\w+:\s(\w+),\s\w+:\s(\w+)/; [ $_, $x, $y ] } @strings;
Untested, but should work.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: complicated sorting issue
by geektron (Curate) on Apr 09, 2004 at 19:49 UTC | |
by dragonchild (Archbishop) on Apr 09, 2004 at 20:13 UTC | |
by Anonymous Monk on Apr 09, 2004 at 20:20 UTC |