next up previous
Next: Logical operators Up: Further Perl Programming Previous: If/Unless statement

Comparison operators for numbers and strings

Perl has different operators for comparing numbers and strings. They are defined as follows:

Comparison                 Numeric String
Equal == eq
Not Equal != ne
Less than < lt
Greater than > gt
Less than or equal <= le
Greater than or equal <= ge


Dave Marshall
9/28/2001