in reply to Delete old files
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Delete old files
by Anonymous Monk on Mar 17, 2014 at 19:21 UTC | |
by Corion (Patriarch) on Mar 17, 2014 at 19:30 UTC | |
by Anonymous Monk on Mar 17, 2014 at 19:56 UTC | |
by roboticus (Chancellor) on Mar 18, 2014 at 11:42 UTC |