Perl:NOT of a Condition

From Progzoo
Jump to navigation Jump to search

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

&&
||
!
and
or
not

We can invert a condition using !

(Note: In this particular case, when ! is used with the =~ operator, we could also write !~ for convenience.)

Which countries do not have an "a" in the name.

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