Ok i'm still very new to perl and i was wondering is there a way to have a script reprint over the same line... like a progress bar? i know if i do a
$i = 0;
while ($i <= 10)
{
print "$i\n";
$i++;
}
it will generate:
1
2
3
4
5
6
7
8
9
10
So is there a way to have it keep over writing itself so i can see the numbers still counting on my output... but the final print out will only show 10?
Thanks
$i = 0;
while ($i <= 10)
{
print "$i\n";
$i++;
}
it will generate:
1
2
3
4
5
6
7
8
9
10
So is there a way to have it keep over writing itself so i can see the numbers still counting on my output... but the final print out will only show 10?
Thanks