in reply to bad results from stat()
use File::stat; $st = stat($file) or die "No $file: $!"; printf "Size: %d, mtime: %d", $st->size(), localtime($st->mtime()); [download]