Skip to content

Commit 48d263a

Browse files
committed
Start control.pod out with statements for the truly new users.
1 parent 7187fee commit 48d263a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/Language/control.pod

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44
55
=SUBTITLE Statements used to control the flow of execution
66
7+
=head2 X<statements|control flow>
8+
9+
Perl 6 programs consists of one or more statements. Simple statements
10+
are separated by semicolons. The following program will say "Hello"
11+
and then say "World" on the next line.
12+
13+
say "Hello";
14+
say "World";
15+
16+
In most places where spaces appear in a statement, and before the
17+
semicolon, it may be split up over many lines. Also, multiple statements
18+
may appear on the same line. It would be awkward, but the above could
19+
also be written as:
20+
21+
say
22+
"Hello"; say "World";
23+
724
=head2 X<blocks|control flow>
825
926
Like many languages, Perl6 uses C<blocks> delimited by C<{> and C<}>

0 commit comments

Comments
 (0)