for my $i (0 .. $#array/2) { my @chunk = @array[2*$i, 2*$i + 1]; print "Chunk: @chunk\n"; }
--
John.
In reply to Re: Non-destructive array processing
by jmcnamara
in thread Non-destructive array processing
by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |