"Tim Wolak" schreef: > I need to compare the current date with that of a file, if the file is > older than the current date remove it and replace it with a new one > from new data. Below I have the code set for getting the date but > can't come up with an easy way to compare it against the file date. > Can anyone tell me the best way to compare the current date with that > of the date/time stamp on a file?
See `perldoc -f time` and `perldoc -f stat` (mtime). Both in number of seconds since the epoch. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>