in reply to Re^6: How can I set a bit to 0 ?
in thread How can I set a bit to 0 ?
you seem to miss that he's using constants, like so often in bit operations.
DB<44> use constant {upload =>0b1, getTicket =>0b10, downLoading=>0b +100}; DB<45> use warnings; use strict; say my $stats = upload | getTicket +| downLoading; 7 DB<46>
> The interesting thing with this thread is that I can't see how any of the replies (including GF's diversion) relate to the original post.
Now I'd be interested to know how I failed to answer exactly the question given in a concise way, especially given the level of the OP.
Plus explanation most others were lacking including the correct terminology and multiple further read-more links.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: How can I set a bit to 0 ?
by hippo (Archbishop) on May 27, 2022 at 14:03 UTC | |
by LanX (Saint) on May 27, 2022 at 14:08 UTC | |
by hippo (Archbishop) on May 27, 2022 at 14:18 UTC | |
by LanX (Saint) on May 27, 2022 at 14:26 UTC | |
by hippo (Archbishop) on May 27, 2022 at 16:11 UTC | |
| |
|
Re^8: How can I set a bit to 0 ?
by syphilis (Archbishop) on May 27, 2022 at 14:55 UTC | |
by LanX (Saint) on May 27, 2022 at 15:10 UTC |