I want to populate an array but I want to only "push" unique values.
Code:
@array = (213,215,213,215,245,120);
foreach my $Numbers (@array) {
if ($Numbers > 200) {
push(@NewNumbers,$Number);
}
}
With the example above, the "215" is getting pushed twice while I simply want to unique ones.
Thank you