in reply to Fast Way to Return Unique Array of Array

Just set $delim to whatever character or sequence of characters is not going to be found inside any of your nested array fields. I used tabs.
use strict; use warnings; use Data::Dumper; my @AoA = (['a','b','c'], ['a','b','c'], ['a','b','d'], ['a','b','d']); my (%h, @uAoA); for (@AoA) { push @uAoA, $_ if !$h{join $;, @$_}++; } print Dumper \@uAoA;
EDIT: Edited code to use $;, as per suggestion.

Replies are listed 'Best First'.
Re^2: Fast Way to Return Unique Array of Array
by Anonymous Monk on Sep 05, 2005 at 07:00 UTC
    nice solution, but better to use $; instead of $delim IMHO.... see perlvar manpage.