- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Perl Arithmetic Operators
Assume variable $a holds 10 and variable $b holds 20, then following are the Perl arithmetic operators −
Sr.No. | Operator & Description |
---|---|
1 | + ( Addition ) Adds values on either side of the operator Example− $a + $b will give 30 |
2 | - (Subtraction) Subtracts right-hand operand from the left-hand operand Example− $a - $b will give -10 |
3 | * (Multiplication) Multiplies values on either side of the operator Example− $a * $b will give 200 |
4 | / (Division) Divides left-hand operand by right-hand operand Example− $b / $a will give 2 |
5 | % (Modulus) Divides left-hand operand by right-hand operand and returns the remainder Example− $b % $a will give 0 |
6 | ** (Exponent) Performs exponential (power) calculation on operators Example− $a**$b will give 10 to the power 20 |
- Related Articles
- Java arithmetic operators
- Python Arithmetic Operators
- Perl Equality Operators
- Perl Assignment Operators
- Perl Bitwise Operators
- Perl Logical Operators
- Perl Miscellaneous Operators
- Perl Operators Precedence
- Arithmetic Operators in C++
- Arithmetic operators in Dart Programming
- What are arithmetic operators in C#?
- What are Arithmetic Operators in JavaScript?
- What are the arithmetic operators in Java?
- Simple Arithmetic Operators Example Program In C++
- What are different arithmetic operators in Python?

Advertisements