in reply to Re^2: Mini-Tutorial: Working with Odd/Even Elements
in thread Mini-Tutorial: Working with Odd/Even Elements
$ perl -de 1 ... DB<1> use 5.010; sub a { grep { state $t ^= 1 } @_ } DB<2> x a(1..5) 0 1 1 3 2 5 DB<3> x a(1..5) 0 2 1 4
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Mini-Tutorial: Working with Odd/Even Elements
by JavaFan (Canon) on Jul 09, 2009 at 19:33 UTC |