http://www.perlmonks.org?node_id=401111


in reply to Re: Finding oldest file in directory
in thread Finding oldest file in directory

Along the same lines, test what was the oldest file last time and if it hasn't changed, it is still the oldest file.