my @odd; for ( 0 .. 10 ) { push @odd unless $_ % 2; }