|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Controlling already printed text to console.by flexvault (Vicar) |
| on Aug 02, 2012 at 16:08 UTC ( #985066=note: print w/ replies, xml ) | Need Help?? |
|
If your working on a *nix system, you could use the 'tput' command. There may be something similar in Windows but someone else will have to answer that. Use 'tput' as below (untested):
I use this technique to show status of a long running script, but I use 'time' to print the status every so many seconds. I did't use '$rows', but that tells you how many lines are on the screen. So you could move the cursor to the bottom -2 and display the results at the bottom of the screen. Also 'tput' is a system commands, so try to use it outside of loops for performance reasons. Good Luck! "Well done is better than well said." - Benjamin Franklin
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||