my @new = grep {$_ == $first .. $_ == $last} @old