Operator:
1.operand
operator
Expression
Statement
2. Arithmetic operators
+
-
*
/
**
%
-
The string join operation must be converted to an integer if it cannot be converted to 0.
2. Arithmetic comparisons
<
>
==
<=
>=
!=
<=>
Note:<> is not an operator, console input
3. String comparisons
Lt
Gt
eq
Le
Ge
Ne
Cmp
Compare by ASCII code
Note that some variables cannot be distinguished by a string or integer such as: ' 123 ' VS 123
4. String connection, repetition
.
X
eg
' A ' x 5 = ' AAAAA '
Note that the notation is otherwise connected when repeating.
5. Logical operators
&& (and)
|| (OR)
! (not)
Xor
6. Bitwise operators
&
|
~
^
<<
>>
7. Assignment operators
=
+=
-=
*=
/=
%=
**=
|=
^=
.=
8. Self-increment, self-reduction (more small knowledge points)
Arithmetic operations that can be used for string manipulation (+ +) to compare strings
9. Comma
10. Conditional operators
11. Priority Precedence
++/--, Monocular above the multi-mesh operator
Numeric operations > Comparison operations > Bitwise operations > Assignment operators > Logical operators
Digital operations: **>*/> +-
Comparison operation: <>>==! =
Note: or VS | | and VS && different priority levels
Binding nature:
General left combination (first left rear right)
Right combination: =?: Commonly used in these two. + =, *= are assignment operators
$a = 2;
$b = 1;
$a *= $b +=5 value is 12
Perl Learning Three: Operators