see also perlop's section on bitwise ormy $a6 = 0b10100101; my $a7 = $a6 | 0b0000010; printf "dec: $a7, hex: %x\n",$a7
update: ignore the variable names :-)
In reply to Re: How may I set a bit or change (10100101 to 10100111)?
by Joost
in thread How may I set a bit or change (10100101 to 10100111)?
by unixhome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |