note routine prints its arguments to the standard errors stream. In the rest, it is similar to
- Calls the
gistmethod on its arguments.
- Adds a newline character.
- Converts the result to UTF-8.
- Sends it to the
my $x = 42; note "Current value of \$x is $x";
Confirm that this program does not send the message to
$ raku t.raku > /dev/null Current value of $x is 42
If no argument is passed to
note, it prints
Noted as the default message.