in reply to Finding unique elements in an array
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));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding unique elements in an array
by Joost (Canon) on Mar 15, 2005 at 13:10 UTC | |
by eyepopslikeamosquito (Archbishop) on Mar 15, 2005 at 13:24 UTC | |
by Roy Johnson (Monsignor) on Mar 15, 2005 at 15:12 UTC | |
by Joost (Canon) on Mar 15, 2005 at 13:35 UTC |