http://qs321.pair.com?node_id=1077450


in reply to Create unique array --the hard way!

A Perl one-liner doing this:
$ perl -e 'my $prev; my @c = qw /a c d e r f e a e z e a /; print join + " ", grep { $_ ne $prev and $prev = $_;} sort @c' a c d e f r z