for my $current (@numbers) { if ($current > 50) { push @array, $current; } }