use IPC::Open3; $pid = open3($WTR, $RDR, $ERR, $cmd_with_args); $pid = open3($WTR, $RDR, $ERR, $cmd, "
The first two arguments (
$RDR) are given in
reverse order compared to IPC::Open2.
A third filehandle can be given, for standard error. If this argument is
will be on the same filehandle.
$WTR begins with
<&, then the leading
stripped from the name and the remainder is assumed to be a regular filehandle
for an open file, rather than a reference to a typeglob.
open3() opens this file as
$cmd and closes it in the parent. Likewise, if
$ERR begins with
STDERR directly to that file
rather than to the parent.
Warnings given for IPC::Open2 regarding possible program hangs apply to IPC::Open3 as well.
|7.2.39 IPC::Open2 - Open a Process for Both Reading and Writing||7.2.41 lib - Manipulate @INC at Compile-Time|