in reply to Re: Optimization of array looping...
in thread Optimization of array looping...
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Optimization of array looping...
by antirice (Priest) on Mar 04, 2004 at 05:17 UTC | |
| |
|
Re: Re: Re: Optimization of array looping...
by jweed (Chaplain) on Mar 04, 2004 at 05:00 UTC |