Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S32] clarify that only sub forms of say and print warn without argum…
…ents
  • Loading branch information
moritz committed Jul 12, 2012
1 parent 7fb26ae commit 2230db7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions S32-setting-library/IO.pod
Expand Up @@ -217,7 +217,7 @@ Stringifies each element, concatenates those strings, and sends the
result to the output.
Returns C<Bool::True> if successful, C<Failure> otherwise.

The compiler will warn you if use a bare C<print> without arguments.
The compiler will warn you if use a bare sub C<print> without arguments.
(However, it's fine if you have an explicit argument list that evaluates to
the empty list at runtime.)

Expand All @@ -233,14 +233,13 @@ X<say>
multi say (*@LIST --> Bool)

This is identical to print() except that it stringifies its arguments by calling
C<.gist> on them and auto-appends the C<output-line-separator> after the final
argument.
C<.gist> on them and auto-appends a newline after the final argument.

Was: print "Hello, world!\n";
Now: say "Hello, world!";

As with C<print>, the compiler will warn you if you use a bare C<say> without
arguments.
As with C<print>, the compiler will warn you if you use a bare sub C<say>
without arguments.

=item printf
X<printf>
Expand Down

0 comments on commit 2230db7

Please sign in to comment.