On Nov 20, 3:18 pm, [EMAIL PROTECTED] (AndrewMcHorney) wrote:

>  I then am going to do a stat
> command to find the date the file was created (it is never modified)
> and then determine if it is to be deleted. What is the easiest way to
> determine if a date is more than x number of days old.

A day is 86400 seconds long.

The current time is returned by the time() function.

But see also "perldoc -f -X"


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to