http://www.perlmonks.org?node_id=263399


in reply to Making expect.pm shut up

I'm pretty sure that you want to work with:
$exp->log_stdout()
It defaults to one for spawned commands. Try, $exp->log_stdout(0).
HTH,
Chris