in reply to Non-destructive array processing
my @array = 1..10; { local @array = @array; while (my @chunk = splice @array, 0, 2) { print "Chunk: @chunk\n"; } } print "Original array is still intact! (@array)\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non-destructive array processing
by Aristotle (Chancellor) on Jan 22, 2003 at 16:09 UTC | |
by ihb (Deacon) on Jan 22, 2003 at 19:09 UTC | |
|
Re: Re: Non-destructive array processing
by jdporter (Paladin) on Jan 21, 2003 at 22:24 UTC | |
|
Re: Re: Non-destructive array processing
by ihb (Deacon) on Jan 22, 2003 at 19:01 UTC |