Yes, but 'overrides' != 'repeats'.
From File::stat:
This module's default exports override the core stat() and
lstat() functions, replacing them with versions that
return "File::stat" objects.
...
You may also import all the structure fields directly into
your namespace as regular variables using the :FIELDS
import tag. (Note that this still overrides your stat()
and lstat() functions.)
and from stat:
stat Returns a 13-element list giving the status info
for a file, either the file opened via FILEHANDLE,
or named by EXPR.
I think the key word there is 'replace'. Nowhere in File::stat does it say that it returns a 13 element list indentical to stat.
You'll also want to familiarise yourself with the C library stat() function, since that is from where the field names are drawn. |