Chris Knipe wrote:
> savage@netsonic:~/src# perl -MIPC::Open2 -e'open2($rd, $wr, "ls -al");
while
> (<$rd>) { print; } exit;'
> open2: wtr should not be null at -e line 1

It may have to do with the fact that you can't write to ls...the following
worked for me

use IPC::Open2;
use strict;

my ($rd, $wr);
open2($rd, $wr, "bc");
print $wr "5 + 7\n";
my $x = <$rd>;
print $x;
close( $rd );
close( $wr );

Tanton


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to