Perl Programming/Keywords/unless

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

The unless keyword[edit | edit source]

unless is a flow-control keyword. The EXPRESSION is called the condition.

Syntax[edit | edit source]

  unless EXPRESSION

Example[edit | edit source]

go_outside() and play() unless $it_is_raining;

See also[edit | edit source]

Previous: UNITCHECK Keywords Next: unlink