Operator precedence. : Perl Script « Language Basics « Perl






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

1.Perl statements end with a semicolon (;)
2.Perl Statements
3.Numeric operators
4.Operator Precedence
5.Operator associativity.
6.Operators demo: Combined Assignment Operators
7.Operators demo: Comparison Operators
8.Operators demo: Logical Operators
9.Operators demo: String Operators
10.Perl Flow Control Commands
11.Perl Flow Control in Brief
12.Perl offers many types of operators
13.Precedence and Associativity
14.The startup line tells the shell where Perl is located.
15.Statements, Whitespace, and Linebreaks
16.Ending modifiers