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


in reply to How do I determine if a file was modified today?

If by "today" you mean "in the last 24 hours", try this:
if (1 > -M $filename) { # Your code here }

-----
Be bloody, bold, and resolute; laugh to scorn
The power of man...