Thanks for the help!

It is indeed '\r'!

I had put it at the beginning of the string, figuring that this will overwrite the old. Now I see that you end the line with '\r' (works in C++ too). Silly me!

I will check out Time::Progress for Perl!

On fredag, jan 31, 2003, at 18:36 Europe/Stockholm, Ken Williams wrote:

Download the Time::Progress module, it's very helpful. I use it like this:

my $pb = 'Time::Progress'->new;
$pb->attr(max => $count);

while (...) {
$pb->report("%50b %p ($i/$count)\r", $i);
}
/Peder
+46-90-786.7719 (work)
+46-90-32344 (home)



Reply via email to