Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by bliako (Monsignor)
on Feb 19, 2019 at 21:04 UTC ( [id://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