Perl Operators   «Prev 

Perl Numeric equality Operators

Operator Description
== equal to
!= not equal to

The numeric equality operators are used to test equality between numbers. For example,
while($x == 42) { 
some code here 
}

These operators work with numeric data.
It is an error to use these operators with strings.

Assignment Operators

Perl offers a wide variety of assignment operators, including many shortcut operators to handle common tasks. Table 3-7 lists these operators. The lvalue is the left hand side of the operator and the rvalue is the expression on the right.

Perl Assignment Operators
Table3-7: Perl Assignment Operators

Advanced Perl Programming