in reply to bad results from stat()

Usually stat is called like so:
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat( $filename);
From there you can use the $size and $mtime values. See perldoc -f stat for more information.

-Mark