Lines Matching defs:stat
1 package File::stat 1.14;
18 our @EXPORT = qw(stat lstat);
67 # into struct stat, and unlike on Win32 the normal -X operators respect
70 # the st_devnam entry of vmsish.h's fake struct stat (which actually
72 # getting that value out of the struct (perl's stat doesn't return it)
162 and warnif("File::stat ignores use filetest 'access'");
164 $^O eq "VMS" and warnif("File::stat ignores VMS ACLs");
175 croak "-$op is not implemented on a File::stat object";
180 struct 'File::stat' => [
199 sub stat :prototype($) {
201 my $st = populate(CORE::stat $arg);
211 return populate(CORE::stat $fh);
218 File::stat - by-name interface to Perl's built-in stat() functions
222 use File::stat;
223 my $st = stat($file) or die "No $file: $!";
237 use File::stat qw(:FIELDS);
238 stat($file) or die "No $file: $!";
245 This module's default exports override the core stat()
247 "File::stat" objects. This object has methods that
249 stat(2) function; namely,
279 This takes an arrayref containing the return values of C<stat> or
284 overrides your stat() and lstat() functions.) Access these fields as
298 C<$_> or the special filehandle C<_> with stat() or lstat(), trying
302 my $stat_obj = stat $_;
305 and undocumented populate() function with CORE::stat():
307 my $stat_obj = File::stat::populate(CORE::stat(_));
313 =item -%s is not implemented on a File::stat object
316 they require more information than just a stat buffer.
324 no warnings "File::stat";
328 =item File::stat ignores use filetest 'access'
331 filetest 'access'> in effect. C<File::stat> will ignore the pragma, and
334 =item File::stat ignores VMS ACLs
337 represented in a stat buffer, and unlike on other systems the builtin
338 filetest operators respect this. The C<File::stat> overloads, however,