perlseeker19 has asked for the wisdom of the Perl Monks concerning the following question:

i came to know that IO::react can be used as an alternate to Expect on activeperl. but the sample snippet given in cpan uses proc::spawn to spawn a telnet session.this package is not supported for windows. i need to send commands to command prompt using io::react. can you help me in this regard?

Replies are listed 'Best First'.
Re: using IO::react
by Anonymous Monk on Jul 23, 2008 at 07:17 UTC
    Not really. The non-portable part of Expect is the dependency on IO::Pty. Proc::Spawn also depends on IO::Pty. IO::React is just more flexible than Expect, but it doesn't get around IO::Pty portability problems. Maybe try Net::Telnet.