next up previous contents index
Next: What is Truth? Up: Boolean Expressions (True and Previous: Boolean Expressions (True and   Contents   Index


We'll need to test how one scalar compares with another. Just like in algebra, perl can compare numbers and just like in a dictionary, perl can compare strings. The result of the comparison is either true or false.

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

Tom Hunt 2002-06-09