in reply to Script to delete only those files on a path whose accessed date is more than 7 days
Try warning these access times before checking or view them in debugger (perl -d) using x command (see perldoc warn and perldoc perldebug for more). Perhaps they are really less than 7 days.
Also, it is highly recommended to use warnings; use strict; in all scripts greater than several lines.
Edit: fix typo, add link
|
|---|