Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://190131]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2017-01-19 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (172 votes). Check out past polls.