Joe Slaven wrote:
> 
> I have a time /date routine which displays time to the nearest second.  Can
> anyone advise on how I can loop the sprint statement so that it appears on
> the same line each time, but with the seconds ticking over ie., only one
> line of display shows while the loop runs, rather than scrolling down the
> page with the \n escape character.


#!/usr/bin/perl -w
use strict;

$|++;
for ( ;; ) {
    print "\r", scalar localtime;
    sleep 1;
    }



John
-- 
use Perl;
program
fulfillment

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

Reply via email to