Darn, my brain has gone blank. There must be a better way to specify the slice continues until the end of the array: $parent2[-1] is the last element, but @parent[3..-1] is empty even if @parent2 has more than four elements.This will DWYM:
But this is simply the replacement for the@parent[3..@parent-1]
Update: removed deprecated.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re: Re: Optimization of array looping...
by QM
in thread Optimization of array looping...
by salonmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |