Skip to content

Commit

Permalink
Mention P5 equivalents for print/printf/say
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 5, 2018
1 parent 6f90183 commit 6114132
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/Language/5to6-perlfunc.pod6
Expand Up @@ -1198,6 +1198,9 @@ C<print> can be used as a function in Perl 6, writing to standard
out. To use C<print> as a function with a filehandle I<instead> of
standard out, you can use a method call: C<$fh.print("howdy!")>
The Perl 6 ecosystem has a module C<P5print> which exports a C<print>
function that mimics the original Perl 5 behaviour as much as possible.
=head2 printf
=item printf FORMAT, LIST
Expand All @@ -1209,6 +1212,9 @@ L<sprintf|https://docs.perl6.org/type/Str#sub_sprintf> for details
on acceptable format directives. To print to a filehandle other than
STDOUT, use the L«C<.printf>|/routine/printf» method on that filehandle.
The Perl 6 ecosystem has a module C<P5print> which exports a C<printf>
function that mimics the original Perl 5 behaviour as much as possible.
=head2 prototype
=item prototype FUNCTION
Expand Down Expand Up @@ -1452,6 +1458,9 @@ The use of the colon as an "invocant marker" here is discussed at
L<https://design.perl6.org/S03.html#line_4019>. Alternately, you can use
a method call: C<$fh.say("howdy!")>
The Perl 6 ecosystem has a module C<P5print> which exports a C<say>
function that mimics the original Perl 5 behaviour as much as possible.
=head2 scalar
=item scalar EXPR
Expand Down

0 comments on commit 6114132

Please sign in to comment.