![]() |
|
Do you know where your variables are? | |
PerlMonks |
Re: Aging Scriptby arturo (Vicar) |
on Aug 08, 2001 at 22:19 UTC ( #103146=note: print w/replies, xml ) | Need Help?? |
Perl makes this sort of thing very easy to do. If you want to delete all files that are older than 31 days, you need to read up on the stat function -- specifically, subtract the "ctime" of the file from the current timestamp and see if it's greater than (24 * 60 * 60 * 31). Also, read up on unlink, and possibly File::Find. HTH.
In Section
Seekers of Perl Wisdom
|
|