Numeric operators : Perl Script « Language Basics « Perl

Perl
1. Array
2. CGI
3. Class
4. Data Type
5. Database
6. File
7. GUI
8. Hash
9. Language Basics
10. Network
11. Regular Expression
12. Report
13. Statement
14. String
15. Subroutine
16. System Functions
17. Win32
18. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Perl » Language Basics » Perl Script 
Numeric operators
   

OPERATOR            PURPOSE

+                   Computes the additive value of the two operands.

–                   Computes the difference between the two operands.

*                   Computes the multiplication of the two operands.

/                   Computes the division between the two operands.

%                   Computes the modulus (remainderof the two operands.

==                  Returns True if the two operands are equal, False otherwise.

!=                  Returns True if the two operands are not equal, False otherwise.

>=                  Greater than.

<=                  Less than.

>                   

<=>                 Returns -if the left operand is less than the right, +if is it greater than, and (Falseotherwise.

&&                  a logical AND operation. 

||                  a logical OR operation. 

&                   Returns the value of the two operators bitwise ANDed.

|                   Returns the value of the two operators bitwise ORed.

~                   Returns the value of the two operators bitwise XORed.

++                  Increment operator. Increments the variable's value by 1.

--                  Decrement operator. Decrements the variable's value by 1.

xx                  Computes the power of the left value to the power of the right value.

+=                  Adds the value of the right operand to the value of the left operand.

-=                  Subtracts the value of the right operand from the value of the left operand.

x=                  Multiplies the value of the left operand with the value of the right operand.

>>                  Shifts the left operand right by the number of bits specified by the right operand.

<<                  Shifts the left operand left by the number of bits specified by the right operand.

~                   Performs a 1s complement of the operator. This is a unary operator.

   
    
    
  
Related examples in the same category
1. Perl statements end with a semicolon (;)
2. Perl Statements
3. Operator Precedence
4. Operator associativity.
5. Operator precedence.
6. Operators demo: Combined Assignment Operators
7. Operators demo: Comparison Operators
8. Operators demo: Logical Operators
9. Operators demo: String Operators
10. Perl Flow Control Commands
11. Perl Flow Control in Brief
12. Perl offers many types of operators
13. Precedence and Associativity
14. The startup line tells the shell where Perl is located.
15. Statements, Whitespace, and Linebreaks
16. Ending modifiers
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.