I would expect -M $_
to be negative, but it is zero for:
perl -E 'qx(touch $_), sleep(5), say -M for "/tmp/file"'
Does perldoc mentions such behavior?
I would expect -M $_
to be negative, but it is zero for:
perl -E 'qx(touch $_), sleep(5), say -M for "/tmp/file"'
Does perldoc mentions such behavior?
Copyright © 2021 Jogjafile Inc.
I think this explains what you are seeing
output when I ran it
1) script starts $^T is set to 1434460114
2) almost immediately the file "/tmp/file" is made with a modify time of 1434460114
3) sleep for 5 seconds
4) -M reports the difference of the modify time on the file and the script start time as zero
try this instead
output on my system