in reply to Re: compare file modification time and current time
in thread compare file modification time and current time

stat does not return an object, but a list.
I guess the OP posted only part of his program, and s/he left out use File::stat;, which would cause stat to return an object. Otherwise s/he would have gotten an error message about that.

-- 
Ronald Fischer <ynnor@mm.st>