Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Bit fiddling madness

by RichardK (Parson)
on Feb 11, 2014 at 12:12 UTC ( [id://1074404]=note: print w/replies, xml ) Need Help??


in reply to Bit fiddling madness

I have no clue as to what's going wrong and you only gave us a tiny code fragment so it's difficult to guess, however I wonder if this would help, or at least shed some light on what is happening.

my $bit = ($addr & $mask) ? 1 : 0;

Replies are listed 'Best First'.
Re^2: Bit fiddling madness
by mbethke (Hermit) on Feb 11, 2014 at 16:24 UTC

    Yeah, thanks for the input, that would certainly have fixed it. Actually I'd thought about it earlier but it seemed kinda kludgy to me because the bug shouldn't have been there in the first place and it wasn't on any of my systems, so I wanted get to the bottom of it. And of course because of the few extra cycles :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2025-07-18 10:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.