$pid = open3($WTR, $RDR, $ERR, $cmd_with_args);
$pid = open3($WTR, $RDR, $ERR, $cmd, "
IPC::Open3 works like IPC::Open2, with the following differences:
The first two arguments (
) 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.
, 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.
opens this file as
and closes it in the parent. Likewise, if
directly to that file
rather than to the parent.
Warnings given for IPC::Open2 regarding possible program hangs apply to
IPC::Open3 as well.