The second paragraph of readdir deals with your problem. In short, you need to prepend "old" to $file. Also see File::Find and/or glob.
In reply to Re: Delete old files
by Corion
in thread Delete old files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |