On 2002-11-06 at 11:43:20, Jonathan Scott Duff wrote:
>
> Will there be some shorter-hand way to say these?
>
> @a = @grades[grep $_ >= 90, @grades];
> @b = @grades[grep 80 <= $_ < 90, @grades];
> @c = @grades[grep 70 <= $_ < 80, @grades];
I think what you mean here is just
@a = grep $_ >= 90, @grades;
etc. grep returns the actual elements, not their indices, so it doesn't
make sense to use them as a slice.
--
Mark REED | CNN Internet Technology
1 CNN Center Rm SW0831G | [EMAIL PROTECTED]
Atlanta, GA 30348 USA | +1 404 827 4754