in reply to Compare mtime?

Just a thought -- could this be a result of using File::stat? When you use it, it overrides the built-in stat to return a File::stat object that you access like this:

my $fs = stat($file); my $mtime = $fs->mtime();

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^2: Compare mtime?
by mbeason (Novice) on Mar 14, 2006 at 19:49 UTC
    That was it! I didn't realize that there was a built-in stat function. Once I removed the reference to File::stat, it worked like a charm. Thanks!