If you'd rather work with bits from a higher level (given your comment about the syntax), take a look at Bit::Vector. Specifically, start with the from_Enum, Bit_Off, Bit_On, Norm, and bit_test methods.
In reply to Re: Testing & Using Bits
by bobf
in thread Testing & Using Bits
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |