We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7187fee commit 48d263aCopy full SHA for 48d263a
doc/Language/control.pod
@@ -4,6 +4,23 @@
4
5
=SUBTITLE Statements used to control the flow of execution
6
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
24
=head2 X<blocks|control flow>
25
26
Like many languages, Perl6 uses C<blocks> delimited by C<{> and C<}>
0 commit comments