in reply to How may I set a bit or change (10100101 to 10100111)?

It depends what you actually want to achieve -

Note that the constants are given as hex, octal and binary for the successive samples.

For completeness it should be noted that $value &= ~2 resets the bit.


DWIM is Perl's answer to Gödel