When you're programming with Perl — or any other language — you use comparison operators all the time. The following table shows the common comparisons for Perl in both math and string form:
| Comparison | Math | String |
|---|---|---|
| Equal to | == | eq |
| Not equal to | != | ne |
| Less than | < | lt |
| Greater than | > | gt |
| Less than or equal to | <= | le |
| Greater than or equal to | >= | ge |
dummies
Source:http://www.dummies.com/how-to/content/perl-truefalse-comparison-operators.html
No comments:
Post a Comment