Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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.

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 exploiting the Monastery: (11)
As of 2016-09-28 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (541 votes). Check out past polls.