in reply to Transforming AoA to Hash by Array Slicing

Unfortunately, that notation doesn't work. Perl5 isn't Ruby (yet).

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;