Perl Programming/Keywords/unless

Previous: UNITCHECK Keywords Next: unlink

The unless keyword

edit

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

Syntax

edit
  unless EXPRESSION

Example

edit
go_outside() and play() unless $it_is_raining;

See also

edit
Previous: UNITCHECK Keywords Next: unlink