in reply to Alternative to Expect for Activestate Perl on Windows ?

IO::React seems to provide similar functionality as Expect (disclaimer: I did not yet use either of them)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

  • Comment on Re: Alternative to Expect for Activestate Perl on Windows ?

Replies are listed 'Best First'.
Re^2: Alternative to Expect for Activestate Perl on Windows ?
by gnoitall (Novice) on Jan 17, 2008 at 18:16 UTC

    CountZero++;

    The other alternatives I've seen put forth (basically, install ActiveTCL and use Expect) run afoul of what looks like a critical bureaucratic constraint: installing more scripting interpreters is a non-starter.

    I hope running PPM and installing ActiveState's instantiation of IO::React is permitted in your setting.

    FWIW, IO::React is "PASSED" across the board according to ActiveState, and is at the current CPAN rev (1.03). If you can do the PPM install and the module's capabilities are up to snuff, this may be the best answer.

      This is kinda intriguing, most programmers wouldn't argue that you should know more than one language and always use the best tool for the job. Plus Tcl is really, really simple and shouldn't be any pain to learn.

      But I guess, the good enough or even barely acceptable solution might win, since it's seems that using the best tool for the job might sometimes be too costly.
      So yea I too would vote for a Perl module, if you don't know Tcl and the module is good enough or even barely passable. (And that was an example of using if as a statment modifier)