[sf-perl] IPC::Open3
David Alban
extasia at extasia.org
Fri Sep 7 13:56:47 PDT 2007
On 9/7/07, Steve Fink <sphink at gmail.com> wrote:
> You can manually make it work:
>
> use Symbol;
> open3(my $wfh, my $rfh, (my $efh = Symbol::gensym), qw(...));
>
> Isn't that beautiful?
Thanks, Steve.
Amusingly enough, then, this works:
my $efh = 1;
my $pid = open3( my $wfh, my $rfh, $efh, qw( ls -ld foo bar ) );
we then get:
rfh: -rw-r--r-- 1 dalban Users 0 Sep 7 11:11 foo
efh: ls: cannot access bar: No such file or directory
--
Live in a world of your own, but always welcome visitors.
More information about the SanFrancisco-pm
mailing list