Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by bliako (Monsignor)
on Feb 19, 2019 at 21:04 UTC ( #1230200=note: print w/replies, xml ) Need Help??


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

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

So, it can be negative if you modified the file within(=after execution) the script, as per:

sleep 1; `touch xbxbx`; my $x = -M "xbxbx"; print "x=$x\n";

Furthermore, the output of -M is fractional Earth days and 1 Earth second is that much of a 24hr Earth day: print sprintf "1 Earth second is %e of an Earth day\n", 1/(24*60*60); ... => 1.157407e-05, which btw is roughly PI/20 millions^-1.

Gosh Larry! My Perl code on Mars is buggy!

bw, bliako

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-08-14 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?