Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^9: How can I set a bit to 0 ?

by LanX (Saint)
on May 27, 2022 at 15:10 UTC ( [id://11144231]=note: print w/replies, xml ) Need Help??


in reply to Re^8: How can I set a bit to 0 ?
in thread How can I set a bit to 0 ?

bit operations happen normally on unsigned integers, I'd say in >90% of the cases (at least)

And I've already shown two instances of perldocs demonstrating exactly that pattern.

> in a PV ? in an IV ? in an NV ?

I reckon IV is an integer value ... please explain the rest° in this context, my perlguts are aching ;-)

And the OP will most probably only know "scalar".

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) OK looking up in "Advanced Perl Programming" (sic)

> A scalar value (SV) contains the value of the scalar, a reference count, and a bitmask to describe the state of the scalar. The scalar may be an integer value ("IV"), a double ("NV"), a string ("PV" for pointer value),

I can't see how this is relevant here.

update

I mean: If someone asks how best to hold a hammer, do you complain he didn't tell you which alloy the nails are made of and where the original ore was mined? Seriously?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11144231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found