@small = qw /78.6 78.8 79.0 80.2 79.8/;
But if we can assume $small [0] is correct, I suggest the following one-liner:
@small = do {my $i; grep {$_ eq $small [0] .. ++ $i == @small} @nu +mbers};
the other numbers in @small aren'r relevant then, only how many numbers there are.
Abigail
In reply to Re: Array logic!
by Abigail-II
in thread Array logic!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |