in reply to array unique elements

This is a faq: How can I remove duplicate elements from a list or array? from perlfaq4.

Replies are listed 'Best First'.
Re^2: array unique elements
by ideasuntouched (Initiate) on Apr 06, 2010 at 17:23 UTC
    my %hash = map { $_ => 1 } @words; my @unique = keys %hash; this code is working for removing duplicates