Last active
August 25, 2016 01:36
-
-
Save SqrtNegInf/cfc1bf33d67365ef2bbc512c8a6d0772 to your computer and use it in GitHub Desktop.
say: buffered vs unbuffered output?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
say(1); | |
say 2; | |
3.say; | |
my $out = open('test.txt', :w); | |
$out.say(1); | |
$out.say: 2; | |
3.say(:$out); | |
stdout: | |
1 | |
2 | |
3 | |
file: | |
3 | |
1 | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment