- or download this
use IPC::Run qw(start pump finish);
...
pump $handle until $out =~ /Password:/;
# and so on ...
- or download this
$client_descr->{"Handle"} = $handle;
$client_descr->{"In"} = $in;
$client_descr->{"Out"} = $out;
$client_descr->{"Err"} = $err;
- or download this
my ($handle, $in, $out) = ($client_descr->{"Handle"}, $client_descr->{
+"In"}, $client_descr->{"Out"});
- or download this
$in .= "new data\n";
pump $handle until $out =~ /data arrived:/;
print $out;