http://qs321.pair.com?node_id=1230194


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

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

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

Replies are listed 'Best First'.
Re^6: Intermittent bug in module: File not getting deleted as expected
by tybalt89 (Monsignor) on Feb 19, 2019 at 20:04 UTC

    BTW, perldoc is wrong, it's not "script start time", it's $^T as shown by the following:

    #!/usr/bin/perl -l # https://perlmonks.org/?node_id=1230174 use strict; use warnings; use Path::Tiny; my $file = 'tmp.1230174'; sleep 2; path($file)->spew("$file\n"); sleep 2; print -M $file; $^T = time; print -M $file;

    Outputs:

    -2.31481481481481e-05 2.31481481481481e-05

    So you can play games with "file age" if you want to.