We don't bite newbies here... much | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi all.
Abigail++ (very cool). Background: & = bitwise 'and' | = bitwise 'or' ^ = bitwise 'xor' The bitwise xor operator only returns '1' when *one* of the operands is different (e.g. 0 ^ 1, 1 ^ 0). If both operands are the same, the result is '0'. In ACSII, in order to quickly move from uppercase to lowercase (or vice versa), simply add / subtract 32 from the number respectively. The 'space' character, incidentally, has an ASCII value of 32. Example: A = 65 a = 97 (65+32 = 97) and (97-32=65). Hope this helps, Anonymous Monk. -Katie In reply to Re: bitwise string operator question
by DigitalKitty
|
|