![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: delete old files (windoze)by xorl (Deacon) |
on Oct 15, 2004 at 13:55 UTC ( #399504=note: print w/replies, xml ) | Need Help?? |
This is how I do it.
$dir is the directory you want to delete files from $days is how old the files are. i.e. if you wanted to delete all files older than two weeks set days to 14.
In Section
Seekers of Perl Wisdom
|
|