Re: Just askin'...

"Joey@xxxxxxxxxxxxxxxxxxxxxx" <Joey@xxxxxxxxxxxxxxxxxxxxxx> writes:
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?

You have to do a bit comparison because you're comparing bits.

Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"