By default, the
put routine does the same job as
- Converts its arguments to a string by calling the
Strmethod on them.
- Adds a newline character.
- Sends it to the
A few examples:
42.put; put 'Alpha', 'Beta'; my @array = 3, 4, 5; put @array; my %hash = a => 'b', c => 'd'; %hash.put;
The outputs of the program:
$ raku t.raku 42 AlphaBeta 3 4 5 a b c d
A newline of
The actual characters that are added after the output are taken from the
nl-out method of the output stream. Its default value is
💪 Or jump directly to the exercises to this section.