in reply to Re: Testing Input and Output
in thread Testing Input and Output

The only problem is if what you call performs blocking.

Internally the brainfck , operator uses getc which does block.

To be safe, you should use IO::Select to see if there is data to read on the handles.

Are you by any chance an ex-C programmer? :-) In my case it's a test script so I know exactly what input and output to expect. If you are doing what I think you are doing something like Net::Telnet might save you a lot of bother.

--
જલધર

Replies are listed 'Best First'.
Re: Re: Re: Testing Input and Output
by gnu@perl (Pilgrim) on Sep 04, 2002 at 14:42 UTC
    Yeah, thanks for the tip. I came to that realization on friday. Some kind of brain lapse. I am using Net::Telnet now and basically threw away what I put here, but it was a nice example of open3 though.