Arithmetic Operators:
| Operator | Example | Meaning |
| + | $a + $b | Sum of $a and $b |
| - | $a - $b | Difference of $a and $b |
| * | $a * $b | Product of $a times $b |
| / | $a / $b | Quotient of $a divided by $b |
| % | $a % $b | Remainder of $a divided by $b |
| ** | $a ** $b | $a to the power of $b |
Assignment Operators:
| Operator | Example | Meaning |
| = | $var = 5 | assign 5 to $var |
| ++ | $var++ or ++$var | increment $var by 1 and assign to $var |
| -- | $var-- or --$var | decrement $var by 1 and assign to $var |
| += | $var += 3 | increase $var by 3 and assign to $var |
| -= | $var -= 2 | decrease $var by 2 and assign to $var |
| .= | $str .= "ing" | concatenate"ing" to $str and assign to $str |
| *= | $var *= 4 | multiply $var by 4 and assign to $var |
| /= | $var /= 2 | divide $var by 2 and assign to $var |
| **= | $var **= 2 | raise $var to the second power and assign to $var |
| %= | $var %= 2 | divide $var by 2 and assign remainder to $var |
| x= | $str x= 20 | repeat $str 20 times and assign to $str |
Logical Operators:
| Operator | Example | Meaning |
| && | $a && $b | True if $a is true and $b is true |
| || | $a || $b | True if $a is true or if $b is true |
| ! | ! $a | True if $a is not true |
Pattern Matching Operators:
| Operator | Example | Meaning |
| =~ // | $a =~ /pat/ | True if $a contains pattern "pat" |
| =~ s// | $a =~ s/p/r | Replace occurences of 'p' with 'r' in $a |
| =~ tr// | $a =~ tr/a-z/A-Z | Translate to corresponding characters |
| !~ // | $a !~ /pat/ | True if $a does not contain pattern "pat" |
String Operators:
| Operator | Example | Meaning |
| . | $a . $b | concatenate $b to the end of $a |
| x | $a x $b | value of $a strung together $b times |
| substr() | substr($a, $o, $l) | Substring of $a at offset $o of length $l |
| index() | index($a, $b) | Offset of string $b in string $a |
Relational Operators:
| Numeric Operator | String operator | Example | Meaning |
| == | eq | $str eq "Word" | Equal to |
| != | ne | $str ne "Word" | Not equal to |
| > | gt | $var > 10 | Greater than |
| >= | ge | $var >= 10 | Greater than or equal to |
| < | lt | $var < 10 | Less than |
| <= | le | $var <= 10 | Less than or equal to |