From your 35
perl -e'print(($_^$_>>1).$/)for(0..pop)' 15 12345678901234567890123456789012345
I shave 6 off
perl -le'print$_^$_>>1 for 0..pop' 15 12345678901234567890123456789
3 more if 5.10+
perl -E'say$_^$_>>1 for 0..pop' 15 12345678901234567890123456
In reply to Re: Decimal Gray Code in 31 chars
by ikegami
in thread Decimal Gray Code in 31 chars
by Oromis92
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |