File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ all output pipes, the program will usually not terminate.
39
39
$git.out.close();
40
40
41
41
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:
44
44
45
- my $don't-die = run '/bin/false';
45
+ $ = run '/bin/false'; # does not sink the Proc and so does not throw
46
46
47
47
You can tell the C < Proc > object to capture output as a file handle by passing
48
48
the C < :out > and C < :err > flags. You may also pass input via the C < :in > flag.
You can’t perform that action at this time.
0 commit comments