my @array = ('11','54','23','78','54','54','78'); print join ', ', grep ++$seen{$_} == 1, @array; __output__ 11, 54, 23, 78