in reply to Re^3: Removing duplicates in Array of Array
in thread Removing duplicates in Array of Array

... or just the map (no golf; grep was excessive) ...

my @unique = map { ! $seen{ $_->[1] }++ ? [ @{ $_ } ] : () } @array;

Replies are listed 'Best First'.
Re^5: Removing duplicates in Array of Array
by GrandFather (Saint) on Sep 04, 2008 at 06:49 UTC

    In the general case that is quite true, but in the context of the OP using both was virtually required. ;)


    Perl reduces RSI - it saves typing