in reply to using grep to extract numbers from an array

I would have tried
my @new_array = grep {$_ >= $first_val and $_ <= $second_val} @old_arr +ay;

Does this have the same floating point issue?