printf("%-30s","0");
for($i=0;$i<10;$i++)
{
print "\e[30D";
printf("%-30s","$i");
sleep(1);
}
I want it to print 0 then wait for 1 second erase it
then print 1 wait for second erase it and print 2 and so on...
But only the 9 is being printed !
what am i doing wrong???
_____________________________________
Perl 5.8.8
Linux Fedora Core 6
_____________________________________
http://digitalpbk.blogspot.com In reply to Problem with print by digitalpbk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |