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);
}

-Ken


On Friday, January 31, 2003, at 10:37 AM, Peder Axensten wrote:

I'd like to rewrite the same line on standard output. To have a progrss indicator like "Compressing, x% done" that is updated with no line feed. How do I do this in Perl? In C++?

/Peder
+46-90-786.7719 (work)
+46-90-32344 (home)




Reply via email to