Operator precedence
Perl's operator join precedence is as follows, in descending order.
- List operator (to the left)
- ->
- + + -
- ** **
- !~\Unary + Unary-
- =~ !~
- * /%x
- + - .
- << >>
- Named unary operator
- <> <= >= lt gt le ge
- == != <=> eq ne cmp
- &
- |^|
- &&
- ||
- .. ...
- ?:
- = += -= *= etc.
- , =>
- List operator (to the right)
- not
- and
- or xor