-
-
Save AlexDaniel/6ce255c821a6e60e7e74dfbf3eadbddf to your computer and use it in GitHub Desktop.
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
my $p := Proc::Async.new: ‘perl’, '-wE', 「 | |
for (1..100000) { print STDOUT "Hello standard output!\n"; print STDERR "Hello standard output!\n"; } | |
」; | |
my atomicint $x; | |
$p.stdout.tap: { $x⚛+=+.lines } | |
$p.stderr.tap: { $x⚛+=+.lines } | |
await $p.start; | |
say $x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment