Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 surveying the Monastery: (12)
As of 2014-08-20 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (116 votes), past polls