Operator precedence.
Operator Operation Performed
++, -- Autoincrement and autodecrement
-, ~, ! Operators with one operand
** Exponentiation
=~, !~ Pattern-matching operators
*, /, %, x Multiplication, division, remainder, repetition
+, -, . Addition, subtraction, concatenation
<<, >> Shifting operators
-e, -r, etc. File-status operators
<, <=, >, >=, lt, le, gt,ge Inequality-comparison operators
==, !=, <=>, eq, ne, cmp Equality-comparison operators
& Bitwise AND
|, ^ Bitwise OR and XOR
&& Logical AND
|| Logical OR
.. List-range operator
? and : Conditional operator (together)
=, +=, -=, *=, Assignment operators and so on
, Comma operator
not Low-precedence logical NOT
and Low-precedence logical AND
or, xor Low-precedence logical OR and XOR
Related examples in the same category