You need something like IPC::Open2 instead of qx() since you want 2-way communication with ssh. qx() only allows to receive from the child process.
That said, you're probably better off using Expect and let it worry about the nitty gritty parent-child communication details.
In reply to Re^5: Dialog with UNIX shell
by ikegami
in thread Dialog with UNIX shell
by vitaly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |