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 fc5555b commit 865fdcfCopy full SHA for 865fdcf
doc/Language/py-nutshell.pod6
@@ -13,7 +13,7 @@ constructs and idioms.
13
14
=head2 Hello, world
15
16
-Let's start with printing "Hello, world!". C<say> in Perl 6 is the
+Let's start with printing "Hello, world!". C<put> in Perl 6 is the
17
equivalent of C<print> in Python. Like Python 2, parentheses are
18
optional. A return is added to the end of the line.
19
@@ -27,7 +27,15 @@ Python 3
27
28
Perl 6
29
30
- say "Hello, world!"
+ put "Hello, world!"
31
+
32
+There is also C<say>, which behaves similarly, but will call
33
+the C<gist> method of its argument.
34
35
+Perl 6
36
37
+ say "Hello, world!"; # also prints "hello world"
38
+ say $hello; # same as: put $hello.gist
39
40
=head2 Statement Separators
41
0 commit comments