in reply to Get even postion elements in an array
@output = grep $|--, @input;
using some magic of $| for the flipflop.
But unless you use it for a real oneliner, use some less obscure formulation of the principal shown in previous replies. ;-)
In Section
Seekers of Perl Wisdom