1 |
Bitwise logical operators: & (AND) | (OR) ^ (XOR) operate on two numbers expressed in 32-bit integer form and perform indicated logical operation on each bit separately
|
2 |
<< is bitwise left shift discarding bits at left (high order) and zero filling at right
|
3 |
>> is bitwise right shift propagating the sign bit in high order (position 31)
|
4 |
>>> is zero fill right shift with no special treatment of sign bit
|
5 |
Boolean operators are && (AND), || (OR), ! (NOT) and can only operate on boolean variables that are true or false
|
6 |
Relational operators are == > >= < <= != which can be used on numeric or string variables
|
7 |
Concatenation operator (+) joins two strings together:
|
8 |
x = "Hello "; y = "World!";
|
9 |
// x + y is "Hello World!"
-
Note + is written . in PERL
|