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
In reply to Re: Script to delete only those files on a path whose accessed date is more than 7 days
by aitap
in thread Script to delete only those files on a path whose accessed date is more than 7 days
by abhi_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |