in reply to Re: Date checking files for a cache
in thread Date checking files for a cache

Rather than go to the complication of stat, you can just update $^T as needed:
$^T = time; ... -M $file < 3 ...

-- Randal L. Schwartz, Perl hacker