How did you change the construction of the entries in @file_list after reading the second paragraph of readdir?
Also, why not use the following instead of the loop?
my @file_list= glob("$old/*");
In reply to Re^3: Delete old files
by Corion
in thread Delete old files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |