in reply to Perl and Expect Problem

I also encountered numerous quirks when trying to use "both." So eventually I gave up and re-wrote everything in pure perl. It turned out to be a good thing anyway since my Expect script was a "first draft" overripe for throwing away.