Perl Programming/Keywords/ne

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

The ne keyword[edit]

ne is a relational operator that returns 1 for true, if the lefthand and righthand side are not equal, and an empty string for false. In contrast, ǃ= checks for numerical inequality.

Syntax[edit]

  EXPRESSION ne EXPRESSION
Previous: my Keywords Next: next