in reply to Logic for elimination of duplicate values from an array in perl for windows platform

I would place the array values into a hash as key values. This would eliminate duplicates.
my %hash; my @array; foreach my $Item (@array){ $hash{$Item} ++; } foreach my $key (keys %hash) { # key is the values that would be in your new array }

"No matter where you go, there you are." BB
  • Comment on Re: Logic for elimination of duplicate values from an array in perl for windows platform
  • Download Code