my @new_array = grep {$_ >= $first_val and $_ <= $second_val} @old_arr +ay;
Does this have the same floating point issue?
In reply to Re: using grep to extract numbers from an array
by jaa
in thread using grep to extract numbers from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |