in reply to Re: Deleting files based on date
in thread Deleting files based on date
where 86400 is the number of seconds in a day, so we unlink all files from the @files array where their modification time earlier than $days days old.unlink grep { (stat($_))[9] < time - ($days * 86400) } @files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Deleting files based on date
by liz (Monsignor) on Oct 20, 2003 at 08:55 UTC |