http://www.perlmonks.org?node_id=1061250


in reply to Re^5: What does ">>" do? (And other stat questions)
in thread What does ">>" do? (And other stat questions)

Ah Ha!

So cool! Thanks for the explanation

So following that logic, could we then mask off the first four bits with 077777?

but that would only be 15 bits, not 16, so probably not.

(Side note, I thought there were 8 bits to a byte?)

  • Comment on Re^6: What does ">>" do? (And other stat questions)

Replies are listed 'Best First'.
Re^7: What does ">>" do? (And other stat questions)
by Laurent_R (Canon) on Nov 05, 2013 at 13:57 UTC

    Of course you are right, a byte is (usually) 8 bits, I meant to say the first half byte, but my fingers did not obey my mind. I made the correction in my post.