Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Script to delete only those files on a path whose accessed date is more than 7 days

by aitap (Curate)
on Aug 13, 2012 at 08:11 UTC ( [id://987067]=note: print w/replies, xml ) Need Help??


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

Sorry if my advice was wrong.
  • Comment on Re: Script to delete only those files on a path whose accessed date is more than 7 days
  • Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://987067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-26 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found