Skip to content

Commit 3023441

Browse files
committed
Reword; use better idiom for not-sinking
1 parent 987f735 commit 3023441

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
@@ -39,10 +39,10 @@ all output pipes, the program will usually not terminate.
3939
$git.out.close();
4040
4141
If the program fails (exits with a non-zero exit code), it will throw
42-
an exception when the return object is sunk. You can capture the
43-
L<Proc|/type/Proc> object to avoid this if needed.
42+
an exception when the returned L<Proc> object is sunk. You can save it into
43+
a variable, even anonymous one, to prevent the sinking:
4444
45-
my $don't-die = run '/bin/false';
45+
$ = run '/bin/false'; # does not sink the Proc and so does not throw
4646
4747
You can tell the C<Proc> object to capture output as a file handle by passing
4848
the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.

0 commit comments

Comments
 (0)