Course of Raku / Essentials / Basic introduction to Raku and its compiler / Comments

Embedded comments

Embedded, or inline comments, have the same form as multi-line comments with the only difference that you place them 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

Multi-line comments   |   Variables and data types essentials

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