Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Start control.pod out with statements for the truly new users.
  • Loading branch information
skids committed Dec 13, 2015
1 parent 7187fee commit 48d263a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions doc/Language/control.pod
Expand Up @@ -4,6 +4,23 @@
=SUBTITLE Statements used to control the flow of execution
=head2 X<statements|control flow>
Perl 6 programs consists of one or more statements. Simple statements
are separated by semicolons. The following program will say "Hello"
and then say "World" on the next line.
say "Hello";
say "World";
In most places where spaces appear in a statement, and before the
semicolon, it may be split up over many lines. Also, multiple statements
may appear on the same line. It would be awkward, but the above could
also be written as:
say
"Hello"; say "World";
=head2 X<blocks|control flow>
Like many languages, Perl6 uses C<blocks> delimited by C<{> and C<}>
Expand Down

0 comments on commit 48d263a

Please sign in to comment.