 
 
 
 
 
 
 
 
 
 
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 |