Skip to content

Instantly share code, notes, and snippets.

@perlpilot
Created September 16, 2010 13:26
Show Gist options
  • Save perlpilot/582416 to your computer and use it in GitHub Desktop.
Save perlpilot/582416 to your computer and use it in GitHub Desktop.
Statement Modifiers
Any simple statement may optionally be followed by a SINGLE modifier, just before the
terminating semicolon (or block ending). The possible modifiers are:
if EXPR
unless EXPR
while EXPR
until EXPR
when EXPR
for LIST
foreach LIST
The "EXPR" following the modifier is referred to as the "condition". Its truth or
falsehood determines how the modifier will behave.
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment