When using the expect module in a perl program, one can log
expect output to a file with a command like

            $exp->log_file($somefilename);

You can turn off STDOUT with

            $exp->log_stdout(0);

        Is there a way to capture either the file output or
expect's STDOUT directly in to a list?
        This would make the flow of the program easier to
follow and control. If something goes wrong, one finds out a lot
sooner.
What I was thinking was is some kind of special "file" that
writes in to @strings when you write to the file but I am open
to any constructive ideas.

Thank you.

Martin McCormick

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to