Perl Numeric Relational Operators
Operator | Description |
> | greater than |
< | less than |
>= | greater than or equal to |
<= | less than or equal To |
The numerical relational operators are used to test numerical relationships. For example,
if ($x > $y) {
some code here
}
else {
some other code here
}
These operators test the relative value of numeric data.
It is an error to use these operators with strings.