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

Re^2: Intermittent bug in module: File not getting deleted as expected

by stevieb (Canon)
on Feb 19, 2019 at 18:23 UTC ( [id://1230178]=note: print w/replies, xml ) Need Help??


in reply to Re: Intermittent bug in module: File not getting deleted as expected
in thread Intermittent bug in module: File not getting deleted as expected

Good catch on the unlink checking, I had completely overlooked that. In cleanup(), OP should be doing something like:

if (-M $file >= $age){ unlink $file or die "can't delete the damned file!: $!"; }

...even if your suggested "force" param is introduced.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found