in reply to Non-destructive array processing
However, if I need to use Perl 5, I'd pick BrowserUK's method, or something like it. It appears a little overkill for the example, but the example is a bit contrived.my @array = 1..10; for @array -> $one, $two { my @chunk = ($one, $two); print "Chunk: @chunk\n"; }
elusion : http://matt.diephouse.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Non-destructive array processing
by Juerd (Abbot) on Jan 21, 2003 at 19:37 UTC |