It's in perlfaq4 "How can I remove duplicate elements from a list or array?".
Also, your line 19:
gives me a syntax error.{push @out,$a;} unless (defined($lasta) && ($lasta eq $a));
In reply to Re: Finding unique elements in an array
by eyepopslikeamosquito
in thread Finding unique elements in an array
by Eyck
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |