
thillai_selvan
Novice
Mar 9, 2010, 1:06 AM
Post #8 of 8
(5885 views)
|
Re: [DivyaG] How to remove duplicates from an array
[In reply to]
|
Can't Post
|
|
If you want to use a module, try the uniq function from List::MoreUtils . So there is no need of hashes.
use strict; use warnings; use List::MoreUtils qw(uniq); my @unique = uniq( 1, 2, 3, 4, 4, 5, 6, 5, 7 ); print "@unique\n"; This will output the following values
|