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 |