Course of Raku / Essentials / Basic introduction to Raku and its compiler / Comments
Single-line comments
The simplest form of a comment is a one-line comment. It starts with
the # character and goes until the end of the current
line.
my $name; # This variable is used to keep user’s name
$name = prompt 'What is your name? ';
say $name; # We see the name nowNotice that a shebang such as #!/usr/bin/env raku in the
first line of code is also a comment for Raku, while it can be read and
executed by the shell.
Practice
Complete the quiz that covers the contents of this topic.
Course navigation
← Comments | Quiz: Single-line comments →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська