Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by nysus (Vicar)
on Feb 19, 2019 at 18:36 UTC ( #1230181=note: print w/replies, xml ) Need Help??


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

By the way, the time value appears to always be the same: -1.15740740740741e-05

Interestingly, that appears to be exactly 1 second. But why is it negative?

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest Vicar";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re^3: Intermittent bug in module: File not getting deleted as expected
  • Download Code

Replies are listed 'Best First'.
Re^4: Intermittent bug in module: File not getting deleted as expected
by stevieb (Abbot) on Feb 19, 2019 at 18:42 UTC

    That, I'm unsure of. From perldoc -f -X:

    -M Script start time minus file modification time, in days.

    Does File::Spec->catfile() modify the file mod time by chance? What happens if you put a two second delay in between that line (in the lib), and the unlink() call? Does that improve things? I know that's definitely not optimal, but it would be worth a shot especially if you can reliably reproduce the issue locally.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2019-06-20 19:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (91 votes). Check out past polls.

    Notices?