in reply to Re^4: File::stats issue
in thread File::stats issue
From File::stat:
and from 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.)
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.stat Returns a 13-element list giving the status info for a file, either the file opened via FILEHANDLE, or named by EXPR.
You'll also want to familiarise yourself with the C library stat() function, since that is from where the field names are drawn.
|
|---|