Closed FGasper closed 3 years ago
stat(_)
is unreadable to a new developer, because _
only exists when you use stat
.stat
which can lead to confusion in A. Using stat(_)
without a prior stat
call and B. using stat(_)
by mistake without realizing there already was a previous stat
call._
is a bareword identifier, which Standard Perl does not support. When you look at something, you need to always know what this is. When using _
in other contexts (print _
), perl doesn't read it the same way, making _
ambiguous, which Standard Perl refuses to be.
Accessing the result of the last stat() operation is often useful, I find, to avoid unneeded disk I/O. What is the intended replacement? Always use
stat()
, never using -X?