![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
I always found splice to be a good way to slice an
array. Here is an example that you can play with. I
am assuming that you always want the last element from
each inner array.
The third argument of '1' for splice is not necessary in this case, but i recommend keeping it in case you decide to remove only one element from any other position. ;) Hope this works for you. jeffa L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat) In reply to (jeffa) Re: seeking different ways to slice a 2-d array
by jeffa
|
|