perlquestion
bartender1382
<p>I feel silly asking this, but...</p>
<p>I know how to set bits, and check for them. What I don't know how to do, nor find on Google,is turn off a specific bit whether it is set or not.</p>
<p>
<code>my $stats = 0;
$stats = upload | getTicket | downLoading;
printCLine($stats);
</code>
</p>
<p>
Yes, I can reset every bit minus the one I want, but that feels kludgy</p>