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 |