Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Switch the odd/even elements of an arrayby wind (Priest) |
on Mar 04, 2011 at 20:31 UTC ( [id://891512]=note: print w/replies, xml ) | Need Help?? |
use xor on the array indexes:
Outputs - Miller
In Section
Seekers of Perl Wisdom
|
|