Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: comparing

by kschwab (Priest)
on Aug 14, 2002 at 15:56 UTC ( #190131=note: print w/ replies, xml ) Need Help??


in reply to comparing file times

Would print -1,0,1 if the first file was older,the same, or newer than the second file:

print "" . ( (stat($ARGV[0]))[9] <=> (stat($ARGV[1]))[9] ) ."\n";


Comment on Re: comparing
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-09-21 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls