Perl Operator Types

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email

Perl supports many types of operators. The table shows all the operator types in the Perl language.

Arithmetic - These operators mirror those you learned in grade school. Addition, Subtraction, and Multiplication are the bread and butter of most mathematical statements.

Assignment - These operators are used to assign a value to a variable. Algebra uses assignment operators. For example, in the statement X = 6, the equal sign is the assignment operator.

Binding - These operators are used during strong comparisons.

Bitwise - These operators affect the individual bits that make up a value. Each character binary notation represents a bit, which the smallest piece of a computememory that you can modify.

Comma - The comma operator has two functions. it serves to separate array or list elements and it serves to separate expressions.

File Test - These operators are used to test for various conditions associated with files. You car test for file existence, file type, and free access rights among other things.

List - List operators are funny things in Perl. They resemble function calls in other languages.

Logical - These operators implement Boolean or true/ false logic.

Numeric Relational - These operators allow you to test the Relational relationship of one numeric variable to another.

Postfix - A member of this group of opera-tors-(), [], {} appears at the end of the affected objects.

Range - The range operator is used to create a range of elements in arrays. It can also be used in a scalar context.

Reference - The reference operators are used to manipulate variables.

String - The string concatenation operator is used to join two strings together. The string repetition operator is used to repeat a string.

String Relational - These operators allow you to test the relationship of one string variable to another.

Ternary - The ternary operator is used to choose between two choices based on a given condition.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.