in reply to Printing changing variable in perl

I suspect you might benefit from one of the many Curses modules on CPAN.