Perl:OR of two Conditions

From Progzoo
Jump to navigation Jump to search

or

There are several logical operators (the latter three have very low precedence):

&&
||
!
and
or
not

We can check two conditions using ||;

Which countries have big population or a big area. (population over 100 million, area over 5 million)

Note that Antartica has a big area but a small population, Japan has a big population but a small area. China has both.

[Font] [Default] [Show] [Resize] [History] [Profile]