Just askin'...
- 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?
--
Joey
.
- Follow-Ups:
- Re: Just askin'...
- From: Keith Thompson
- Re: Just askin'...
- From: Uri Guttman
- Re: Just askin'...
- Prev by Date: FAQ 4.52 How do I sort an array by (anything)?
- Next by Date: Re: Just askin'...
- Previous by thread: FAQ 4.52 How do I sort an array by (anything)?
- Next by thread: Re: Just askin'...
- Index(es):