in reply to Testing & Using Bits

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.