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 |