in reply to Re^2: Take out repeating numbers with grep
in thread How do I get my code to not repeat numbers and also sort the numbers

Won't filtering out duplicates leave you with too few numbers? If that's what you want, here you go:
my %seen; my @unique = grep !$seen{$_}++, @numbers;

This is in perlfaq4