< Perl Programming < Keywords

The not keyword

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

Syntax

  not EXPRESSION
  OPERATOR not EXPRESSION

Examples

  if ($a + 20 == 22 and not $a*5 == 30) {  };
  []
}
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.