in reply to What is the preferred cross-platform IPC module?

There is no interface for writing to a file handle in IPC::Run, only appending to a scalar. This seems…weird.

Not sure what you mean here. This works fine:

use IPC::Run qw(start run); open(my $in, "<", "in.txt") or die "Err: $!"; open(my $out, ">", "out.txt") or die "Err: $!"; my @cat = '/bin/cat'; my $h = run \@cat, $in, $out; close $in; close $out;

Replies are listed 'Best First'.
Re^2: What is the preferred cross-platform IPC module?
by Theory (Beadle) on May 15, 2012 at 15:28 UTC
    I want file handles I can interactively read (from the target process's STDOUT) and rite (to the target process's STDIN). @Ikegami pointed out on the SO post that is possible to do this with IPC::Run; I just haven't read the docs closely enough.