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 }
In reply to Re: Logic for elimination of duplicate values from an array in perl for windows platform
by Ninthwave
in thread Logic for elimination of duplicate values from an array in perl for windows platform
by Aaryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |