Skip to content

Commit

Permalink
enable printf() again
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Mar 21, 2010
1 parent 3c9f65b commit 0d10ff6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/IO.pm
Expand Up @@ -44,7 +44,7 @@ class IO {
}

multi method printf($format, *@args) {
# self.print(sprintf($format, |@args));
self.print(sprintf($format, |@args));
}

multi method say(*@items) {
Expand Down Expand Up @@ -131,4 +131,9 @@ multi lines (Str $filename, Any $limit = *) {
$fh.lines($limit);
}

multi sub printf($format, *@args) {
$*OUT.printf($format, |@args);

}

# vim: ft=perl6

0 comments on commit 0d10ff6

Please sign in to comment.