Welcome to the Monastery | |
PerlMonks |
Re: Script to delete only those files on a path whose accessed date is more than 7 daysby aitap (Curate) |
on Aug 13, 2012 at 08:11 UTC ( [id://987067]=note: print w/replies, xml ) | Need Help?? |
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
Sorry if my advice was wrong.
In Section
Seekers of Perl Wisdom
|
|