Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Dates difference

by Corion (Pope)
on May 23, 2005 at 20:35 UTC ( #459704=note: print w/replies, xml ) Need Help??


in reply to Dates difference

You don't need to do the calculation yourself, see perldoc -f -X (or perlfunc):

if (-C $file > 45) { print "$file is too old.\n"; };

Replies are listed 'Best First'.
Re^2: Dates difference
by mikeraz (Friar) on May 24, 2005 at 17:46 UTC
    Bear in mind that for a long running script this solution will fail. The file test compares to start of script run time.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://459704]
help
Chatterbox?
[Corion]: A good daystart to everybody ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-02-28 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (398 votes). Check out past polls.