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


in reply to comparing files based on timestamps

perldoc -f stat

could be what you are searching for.