in reply to Fetch every other item in a list
You can obfuscate this if you wish...@even = @array[map 2*$_, 0..$#array/2]; @odd = @array[map 2*$_+1, 0..$#array/2];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Fetch every other item in a list
by extremely (Priest) on Oct 24, 2000 at 05:16 UTC |