my $flipflop = 1; my @result = grep { $flipflop = not $flipflop; }, @input;
One world, one people
In reply to Re^2: Get even postion elements in an array
by anonymized user 468275
in thread Get even postion elements in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |