|
From: <Msc...@ao...> - 2002-09-11 00:57:39
|
In a message dated 9/11/02 1:43:58 AM W. Europe Daylight Time,
ke...@go... writes:
> $LAST_CHECKED_AT is being reset, but only when the file is actually
> checked.
Let's assume that the file never changes. At first, you're gonna wait
$WATCH_DELAY seconds. Once that is over, you're going to run the check, but
$LAST_CHANGED_AT < (stat($FILE_TO_WATCH))[9]
evaluates to false, the if-body isn't executed, $LAST_CHECKED_AT not being
reset. And with the next (and all of the following) calls, you're gonna run
stat() again, right?
-- Mike
Mike Schilli
log...@pe...
http://perlmeister.com
|