Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Removing duplicates from an arrayby alexm (Chaplain) |
on Jan 03, 2008 at 16:49 UTC ( [id://660245]=note: print w/replies, xml ) | Need Help?? |
my @no_duplicates = r(@original_array);Please, note that this method may not preserve the original order of the array values. But uniq function from List::MoreUtils does, as mentioned in perlfaq4 and PBP.
In Section
Seekers of Perl Wisdom
|
|