Don't ask to ask, just ask | |
PerlMonks |
Re: Re: Processing arrays 2 elements at a time (TIMTOWTDI)by ichimunki (Priest) |
on Aug 02, 2002 at 19:38 UTC ( [id://187189]=note: print w/replies, xml ) | Need Help?? |
So don't make your copy first. It's a reference after all, which in this case makes life easy.
This way we build our new array (while the one gets bigger, the other gets smaller), then we simply change what the reference points to.
In Section
Meditations
|
|