in reply to Re: Quicly extracting odd index elements in the array with grepin thread Quicly extracting odd index elements in the array with grep
You can eliminate the map by taking a slice:
my @var = @arr[ grep {$_ & 1} 1..$#arr ]; [download]