my @sorted_list = map { $_->[0] } sort { $a->[1] cmp $b->[1] or $a->[2] cmp $b->[2] } map { [ $_, (split /\t/)[3,4] ] } @database_in;
I made a few stylistic changes too :)
Update: Removed $_ from split. Hofmator is right - it was an artifact from the refactoring :(
--"The first rule of Perl club is you don't talk about Perl club."
In reply to Re: Sort Question (Again) :(
by davorg
in thread Sort Question (Again) :(
by LostS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |