Perl Programming/Keywords/not

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Previous: no Keywords Next: oct

The not keyword[edit | edit source]

not is the negation operator. It is semantically equivalent to ǃ, but has very low precedence.

Syntax[edit | edit source]

  not EXPRESSION
  OPERATOR not EXPRESSION

Examples[edit | edit source]

  if ($a + 20 == 22 and not $a*5 == 30) {  };
  []
}
Previous: no Keywords Next: oct