Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How do I determine if a file was modified today?

by rchiav (Deacon)
on Jun 02, 2001 at 18:05 UTC ( #85194=note: print w/ replies, xml ) Need Help??


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

You should also test against "-C". -M will catch if the file is modified, but what if someone copies up a file right before the script is run? It will give the time since modified, but not sice it was copied up. I think it's better to test both..

I use..

$age = int( -M ) < int( -C ) ? int( -M ) : int( -C );

Rich


Comment on Re: How do I determine if a file was modified today?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://85194]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-12-22 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls