Hi - > -----Original Message----- > From: jdavis [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 22, 2003 11:52 PM > To: perl > Subject: bitwise? > > > Hello, > Could someone explain what bitwise means? I am reading > up on Perl operators and I am seeing the term bitwise used for > the & and | operators. better yet could i get a little code > with a example of bitwise operators that a newbie could > assimilate. > > Thanks, > -- > jd > [EMAIL PROTECTED] > > Bad spellers of the world untie! >
Just that: bit-by-bit! bit wise and, for example: 1011 0111 & 0011 1110 ---- ---- 0011 0110 bit wise or: 1011 0111 & 0011 1110 ---- ---- 1011 1111 See? The bit wise operations are carried out bit-by-bit regardless of how the data is used (as a character, binary number, decimal digit, floating point number, or whatever). Aloha => Beau; PS: I love your tidbit about bad spellers - I'm a charted meber! :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]