After further study, I probably would have had to setup a named pipe to capture expect's output in to strings which would have not bought me anything useful for this situation. We needed to know what was going on with expect as it happened, not after the fact. More study shows that there is a variable in expect's perl module called exp->before which shows you the buffer as it exists now and that is all I needed. x $exp->before outputs a scaler in which the last few lines leading up to this moment show as a long line of ASCII text in which newlinCR-LF sequences indicate line breaks in the lines originally captured. That is an easy problem to resolve for perl so my application will not have to do anything special to alert the caller that this or that went wrong. That's my favorite solution, simple and direct.
Martin McCormick -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/