in reply to Perl shell with input and output terminal

I would look at Curses. The cheap/no-frills alternative would be to use screen and just write your output to a file. In the "other" window, you could have tail -f /tmp/that.file running to show the output.