in reply to Re: Extracting unique elements from arrayin thread Extracting unique elements from array
And once @list is properly initialized,
use List::MoreUtils qw/uniq/; my @uniq = uniq @list; [download]