in reply to Transforming AoA to Hash by Array Slicing
You'll need to unroll the array somehow. I'll leave it up to you to decide if the following is a readable solution:
@uniq{ map { $_->[-1] } @AoA } = ();
Update: of course, when we're going that way, we might as well be explicit about it and just say:
my %uniq = map { $_->[-1] => 1 } @AoA;
|
|---|