my($actions) = " ABCDEFG"; my($bits) = 0x37; my($bplace) = 1; my($index) = length($actions); while(--$index >= 0) { substr($actions, $index, 1, " ") if !($bplace & $bits); $bplace += $bplace; } print $actions, "\n";
In reply to Re: Decoding Mapped Bitfields
by BerntB
in thread Decoding Mapped Bitfields
by ozboomer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |