Mega Code Archive

 
Categories / Perl / Language Basics
 

Increment and Decrement Operators

Operator     Example       Description +            $a = 3 + 4;   Add -            $a = 3–4;     Subtract *            $a = 3 * 4;   Multiply /            $a = 3 / 4;   Divide **           $a = 2 ** 4;  Raise the power %            $a = 36 % 8;  Modulo the expression on the left of the operator by the expression on the right of the operator.