Course of Raku / Essentials / Functions essentials / Built-in functions for printing
note
The note routine prints its arguments to the standard
error stream. In the rest, it is similar to say.
- Calls the
gistmethod on its arguments. - Adds a newline character.
- Converts the result to UTF-8.
- Sends it to the
STDERRstream.
my $x = 42;
note "Current value of \$x is $x";Confirm that this program does not send the message to
STDOUT:
$ raku t.raku > /dev/null
Current value of $x is 42If no argument is passed to note, it prints
Noted as the default message.
Course navigation
← put
| Compare
say and put →
💪 Or jump directly to the
exercises in this section.
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська