Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my @sortedIndexes = ();
- $sortedIndexes[0][0] = { a => 1 };
- $sortedIndexes[0][1] = { a => 0 };
- for (my $i = 0; $i < scalar(@sortedIndexes); $i++) {
- @{$sortedIndexes[$i]} = sort { $a->{a} <=> $b->{a} } @{$sortedIndexes[$i]};
- }
- use Data::Dumper;
- print Data::Dumper->Dump([\@sortedIndexes])."\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement