Hi Matt,

I'm very new to perl (a week or so), so this may not be the best way to do
this, but....

for ($i=0; $i<10; $i++) {printf "%d\r",$i;}

This will (should?) print the number followed by a Carriage Return (no
linefeed), so the cursor returns to the start of the line.

Hope this is what you wanted....

Mark

-----Original Message-----
From: Matt Cauthorn [mailto:[EMAIL PROTECTED]]
Sent: 13 June 2001 13:21
To: [EMAIL PROTECTED]
Subject: A Term::ReadKey question -- keep cursor put!


I'm trying something like:

for ($i=0; $i<10; $i++){print $i;}

and have the numbers iterate in ONE PLACE at the cursor (i.e. print, then
backspace,
print the new number, etc). I'm having problems figuring this out. Any
ideas? 

Thanks

Matt

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Reply via email to