And unreadable. If you didn't write it, I'd had no idea what it meant. To decode it you first have to remember that << and >> are bit shift operators (not a big deal), but then you have know their relative precedence, and if they are equal, even their associativity.
If you remember that 2 ** $_ / 2 == 2 ** ($_ -1), you can write it with just one bit shift operation.
In reply to Re: Beautiful code I wrote ;-)
by moritz
in thread Beautiful code I wrote ;-)
by Skeeve
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |