Perl Programming/Keywords/else

Previous: each Keywords Next: elsif

The else keyword

edit

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

Syntax

edit
  if EXPRESSION else EXPRESSION

See also

edit
Previous: each Keywords Next: elsif