Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by tybalt89 (Monsignor)
on Feb 19, 2019 at 18:58 UTC ( [id://1230188]=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

If I understand your problem (which is very iffy).

-M measures from start of program (kept in $^T). sleep() just make things worse. Adjust start of program. $^T = time; at or after creation of file will fix;

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

Replies are listed 'Best First'.
Re^3: Intermittent bug in module: File not getting deleted as expected
by nysus (Parson) on Feb 19, 2019 at 19:03 UTC
    - M reports the age of the file in days.

    $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

      From perldoc -f -M

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

        Ah, thanks. That makes things perfectly clear.

        $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

Re^3: Intermittent bug in module: File not getting deleted as expected
by nysus (Parson) on Feb 19, 2019 at 19:07 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found