... or just the map (no golf; grep was excessive) ...
my @unique = map { ! $seen{ $_->[1] }++ ? [ @{ $_ } ] : () } @array;
In reply to Re^4: Removing duplicates in Array of Array
by parv
in thread Removing duplicates in Array of Array
by iphony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |