In addition to Expect, you might check out IPC::Run.
In reply to Re: Interactive Input without Expect.pm by perrin in thread Interactive Input without Expect.pm by sagat