in reply to Re: Quicly extracting odd index elements in the array with grep
in thread Quicly extracting odd index elements in the array with grep
can you explain me the following line. I am not able to understand what is that doing exactly.
my @var = map {$arr$_} grep {$_ & 1} 1..$#arr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Quicly extracting odd index elements in the array with grep
by ikegami (Patriarch) on Aug 10, 2006 at 05:51 UTC |