Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: deleting a file in perl

by pvaldes (Chaplain)
on Apr 02, 2013 at 09:04 UTC ( #1026629=note: print w/ replies, xml ) Need Help??


in reply to deleting a file in perl

This is a way, but not the only way, (and perhaps not the best way)

Alternatively:

If you are in a Linux OS consider to use find2perl to search for old files, maybe copy the newest to a different place, and delete files if its filename match AND its timestamp is older than X days or months. See mtime, atime, etc.

or

manage your log files with a specific module. Look here.


Comment on Re: deleting a file in perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-09-16 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (158 votes), past polls