Thank you Raghavan, its work :)



Sudarshan Raghavan <[EMAIL PROTECTED]> 
09/11/2003 03:44 PM

To
[EMAIL PROTECTED]
cc

Subject
Re: Perl Module to print $string in exact possition






Hari Fajri wrote:

>Hi All, 
>
>What is perl module to print $string in exact position in sceen.
>For example: 
>i wanna print "time remaining: 59 second(s)"
>after that, i want to replace it with: "time remaining: 58 second(s)"
>

Use '\r' (carraige return) instead of '\n' in your print statements and 
turn autoflush on. E.g
#!/usr/bin/perl
use strict;
use warnings;

#Turn autoflush on, perldoc perlvar
local $| = 1;
print "Hello World\r";
sleep (1);
print "Hope things are fine\r";
sleep (1);
print "\n";

>
>Thank you
>
> 
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to