![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Switch the odd/even elements of an arrayby wind (Priest) |
on Mar 04, 2011 at 20:31 UTC ( #891512=note: print w/replies, xml ) | Need Help?? |
use xor on the array indexes:
Outputs - Miller
In Section
Seekers of Perl Wisdom
|
|