Skip to content

Commit 70e6cc5

Browse files
author
Jan-Olof Hendig
committed
Fixed two code examples which didn't compile
1 parent d8c7dc9 commit 70e6cc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/Language/ipc.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.
4646
You may also use C<Proc> to capture the PID, send signals to the application,
4747
and check the exitcode.
4848
49-
my $crontab = run 'crontab' '-l';
49+
my $crontab = run 'crontab', '-l';
5050
if $crontab.exitcode == 0 {
5151
say 'crontab -l ran ok';
5252
}
@@ -64,10 +64,10 @@ ability to send signals to that program.
6464
# Get ready to run the program
6565
my $log = Proc::Async.new('tail', '-f', '/var/log/system.log');
6666
$log.stdout.tap(-> $buf { print $buf });
67-
$log.stderr.tap(-> $buf { $*ERR.print $buf });
67+
$log.stderr.tap(-> $buf { $*ERR.print($buf) });
6868
6969
# Start the program
70-
my $done = $proc.start;
70+
my $done = $log.start;
7171
sleep 10;
7272
7373
# Tell the program to stop

0 commit comments

Comments
 (0)