D
Dave Bazell
I have a multidimensional array, say 20 x 6, and I want to take a subset of
the rows. I have an index array
@indx=(1,3,12,17) for example, and what I want to say is
@new_array = $data[@indx][0..5]
I know that does not work. It has something to do with using the
appropriate reference to the array elements.
How should I do this? And why does it work?
Thanks,
Dave
the rows. I have an index array
@indx=(1,3,12,17) for example, and what I want to say is
@new_array = $data[@indx][0..5]
I know that does not work. It has something to do with using the
appropriate reference to the array elements.
How should I do this? And why does it work?
Thanks,
Dave