Perl Programming/Keywords/else

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

The else keyword

[edit | edit source]

else is the keyword used to add an unconditional branch to an if … [end if] … statement.

Syntax

[edit | edit source]
  if EXPRESSION else EXPRESSION

See also

[edit | edit source]
Previous: each Keywords Next: elsif