digitalpbk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with print
by RL (Monk) on May 10, 2007 at 05:20 UTC | |
by Zaxo (Archbishop) on May 10, 2007 at 05:41 UTC | |
by digitalpbk (Initiate) on May 10, 2007 at 09:55 UTC | |
|
Re: Problem with print
by GrandFather (Saint) on May 10, 2007 at 05:03 UTC | |
|
Re: Problem with print
by halley (Prior) on May 10, 2007 at 17:29 UTC |