in reply to How do I access only certain elements of a multidimensional array?
if you want to access, say from 1 to 4, just change:my @new_shapes = (); map { push(@new_shapes, [@$_[2..$#$_]]) } @shapes;
[2..$#$_] to: [1..4]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I access only certain elements of a multidimensional array?
by 2teez (Vicar) on Nov 01, 2015 at 08:43 UTC | |
by igoryonya (Pilgrim) on Nov 07, 2015 at 07:45 UTC |