in reply to Re: How to make references more like aliases?
in thread How to make references more like aliases?
Neither do I. But what you did is likely even more work than passing the whole array. Your code is equivalent to the following:
To avoid making copies and only passing a reference, that should have been by_groups_of( 3, \@array ). Additionally, an iterator should stop when it is finished. In your code, you have to explicitly force it to abandon the infinite loop.
I do appreciate the reply and finding the fencepost bug. See this node for the latest version.
Cheers - L~R
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to make references more like aliases?
by Prior Nacre V (Hermit) on Sep 29, 2004 at 05:57 UTC | |
by Limbic~Region (Chancellor) on Sep 29, 2004 at 13:29 UTC | |
by Prior Nacre V (Hermit) on Sep 30, 2004 at 03:14 UTC |