- From: "Joey@xxxxxxxxxxxxxxxxxxxxxx" <Joey@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 17 May 2011 19:23:52 -0700
Trying to learn...
I create a variable, say $abc, by setting bits. Later, I want to test
whether any of the first several bits are set. I tried $abc && 191, but
always get 191. If I compare $abc & 191, I get the correct result. Why do
I have to do a bit comparison?