for my $filename (@files) { my $filepath = "$dir$filename"; stat($filepath); if (-f _ and -M _ > $daysToPurge) { print LOGF "$filepath will be purged\n"; unlink $filepath or print ERRLOG "Can't remove $filepath: $!"; } }
In reply to Re: Delete Files
by runrig
in thread Delete Files
by windy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |