in reply to Re: Perl reading clock changes
in thread Perl reading clock changes

And to add (because you're a newbie) to chady's reply, you need to store somewhere the value of the "time" function, eg:
# snippet... open(TIMELOG,">timelog.txt") || die $!; print TIMELOG time; close(TIMELOG);
then when you need to see if clock has been set back:
open(TIMELOG,"<timelog.txt") || die $!; my $stored_time = <TIMELOG>; close(TIMELOG); if (time < $stored_time) { ... do something because time now is earlier than stored }
.02

cLive ;-)