logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: Down and dirty duplicate deleter: msg#01887

Subject: RE: Down and dirty duplicate deleter
Load the elements of an array into a hash.  Then put the unique keys back into 
the array; add other goodies like sorting if you need, but one barebones way 
of doing it would be:

for (@array) { chomp $_; $hash{$_}++ }
@array = ();
@array = keys %hash;


<Prev in Thread] Current Thread [Next in Thread>