in reply to How may I set a bit or change (10100101 to 10100111)?
my $bit_set = $old_number | 0x2; [download]
Phil