
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 aholds10andvariableb 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− ba will give 0 |
6 |
** (Exponent) Performs exponential (power) calculation on operators Example− a∗∗b will give 10 to the power 20 |
Advertisements