in reply to Re: Extracting numbers from arrays
in thread Extracting numbers from arrays

Why not use an operator that does exactly that?
my @new = grep {$_ == $first .. $_ == $last} @old

Abigail