Have you looked at File::stat?
In reply to Re: Is it possible to localize the stat/lstat cache? by fishmonger in thread Is it possible to localize the stat/lstat cache? by bounsy