Course of Raku / Essentials / Comments

Embedded comments

Embedded, or inline comments, have the same form as multi-line comments with the only difference that you place it between other parts of the program. For example:

my $name;
$name = #`[User input expected here] prompt 'What is your name? ';
say $name;

A good syntax highlighter helps a lot to visualize the comments.

Course navigation

Comments / Multi-line comments   |   Scalar variables

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська