Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 contemplating the Monastery: (7)
As of 2014-10-24 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls