Jump to content

Perl Programming/Keywords/eq

From Wikibooks, open books for an open world
Previous: eof Keywords Next: eval

The eq keyword

[edit | edit source]

eq is a relational operator that returns 1 for true, if the lefthand side is stringwise equal to the righthand side, and an empty string ̈("") for false.

Syntax

[edit | edit source]
  EXPRESSION eq EXPRESSION
Previous: eof Keywords Next: eval