Google News
logo
Perl - Interview Questions
What are Numeric Operators in Perl?
Numeric operators in Perl are as follows :
 
* Arithmetic operators :  (+,-,*/).

* Comparison operators :
  to compare two numbers (>, <, ==, !=,<=,>=,<=>).

* Bitwise Operators :
(&(and), |(or),^(ex-or),~(not),<<(shift left),>>(shift right)).

Arithmetic operators perform from left to right while Bitwise operators perform an operation from right to left.
Advertisement