If the following deletes all the files in a folder, is there an easy way to delete a single file from a folder once a week?
-s-
#!/usr/bin/perl
$path="/www/mysite/ad";
opendir(FP,"$path");
@del=readdir(FP);
closedir(FP);
foreach $i (@del) {
unlink "$path/$i";
}