in reply to Howto Avoid Memory Problem in List::MoreUtils

Just a reminder. You can prevent the addition of duplicates with Array::Unique.
use Array::Unique; tie @a, 'Array::Unique'; @a = qw(a b c a d e f); push @a, qw(x b z); print "@a\n"; # a b c d e f x z

Replies are listed 'Best First'.
Re^2: Howto Avoid Memory Problem in List::MoreUtils
by salva (Canon) on May 05, 2006 at 09:00 UTC
    Array::Unique uses the same approach as List::MoreUtils::uniq to eliminate duplicates, so it is not going to solve the out of memory problem.