Skip to content

Commit

Permalink
Reword; use better idiom for not-sinking
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 30, 2017
1 parent 987f735 commit 3023441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/Language/ipc.pod6
Expand Up @@ -39,10 +39,10 @@ all output pipes, the program will usually not terminate.
$git.out.close();
If the program fails (exits with a non-zero exit code), it will throw
an exception when the return object is sunk. You can capture the
L<Proc|/type/Proc> object to avoid this if needed.
an exception when the returned L<Proc> object is sunk. You can save it into
a variable, even anonymous one, to prevent the sinking:
my $don't-die = run '/bin/false';
$ = run '/bin/false'; # does not sink the Proc and so does not throw
You can tell the C<Proc> object to capture output as a file handle by passing
the C<:out> and C<:err> flags. You may also pass input via the C<:in> flag.
Expand Down

0 comments on commit 3023441

Please sign in to comment.