DB<23> use feature "state"; print grep { state $ff ^= 1 } 0..9 02468 DB<24> use feature "state"; print grep { not state $ff ^= 1 } 0..9 13579
Cheers Rolf
In reply to Re^2: Get even postion elements in an array
by LanX
in thread Get even postion elements in an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |