I suspect you might benefit from one of the many Curses modules on CPAN.
In reply to Re: Printing changing variable in perl by hippo in thread Printing changing variable in perl by Anonymous Monk