Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove printf workaround mention from 5-to-6 doc
  • Loading branch information
zoffixznet committed Nov 27, 2016
1 parent 96ffea2 commit 27b993f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions doc/Language/5to6-perlfunc.pod6
Expand Up @@ -991,13 +991,10 @@ standard out, you can use a method call: C<$fh.print("howdy!")>
=item printf
Works in Perl 6, but only as a function writing to standard out. To
use for a file handle, one must create a formatted string using function C<sprintf>
and then pass the string to C<IO::Handle> method C<.say> or C<.print> as desired.
For the formats, see the documentation for C<sprintf>. For example:
my $fh = open "tmp.txt", :w;
$fh.say(sprintf("%d", 2));
Perl 6 version is similar; see
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>|/type/printf» method on that filehandle.
=head2 prototype
Expand Down

0 comments on commit 27b993f

Please sign in to comment.