@@ -16,12 +16,12 @@ our ( $st_dev, $st_ino, $st_mode,
1616
1717use Exporter ' import' ;
1818our @EXPORT = qw( stat lstat) ;
19- our @fields = qw( $st_dev $st_ino $st_mode
20- $st_nlink $st_uid $st_gid
21- $st_rdev $st_size
22- $st_atime $st_mtime $st_ctime
23- $st_blksize $st_blocks
24- ) ;
19+ our @fields = qw( $st_dev $st_ino $st_mode
20+ $st_nlink $st_uid $st_gid
21+ $st_rdev $st_size
22+ $st_atime $st_mtime $st_ctime
23+ $st_blksize $st_blocks
24+ ) ;
2525our @EXPORT_OK = ( @fields , " stat_cando" );
2626our %EXPORT_TAGS = ( FIELDS => [ @fields , @EXPORT ] );
2727
@@ -73,7 +73,7 @@ sub _ingroup {
7373# and interpreting it later would require this module to have an XS
7474# component (at which point we might as well just call Perl_cando and
7575# have done with it).
76-
76+
7777if (grep $^O eq $_ , qw/ os2 MSWin32/ ) {
7878
7979 # from doio.c
@@ -152,7 +152,7 @@ my %op = (
152152use constant HINT_FILETEST_ACCESS => 0x00400000;
153153
154154# we need fallback=>1 or stringifying breaks
155- use overload
155+ use overload
156156 fallback => 1,
157157 -X => sub {
158158 my ($s , $op ) = @_ ;
@@ -179,20 +179,20 @@ use overload
179179use Class::Struct qw( struct) ;
180180struct ' File::stat' => [
181181 map { $_ => ' $' } qw{
182- dev ino mode nlink uid gid rdev size
183- atime mtime ctime blksize blocks
182+ dev ino mode nlink uid gid rdev size
183+ atime mtime ctime blksize blocks
184184 }
185185];
186186
187187sub populate {
188188 return undef unless @_ ;
189189 my $stob = new();
190190 @$stob = (
191- $st_dev , $st_ino , $st_mode , $st_nlink , $st_uid , $st_gid , $st_rdev ,
192- $st_size , $st_atime , $st_mtime , $st_ctime , $st_blksize , $st_blocks )
193- = @_ ;
191+ $st_dev , $st_ino , $st_mode , $st_nlink , $st_uid , $st_gid , $st_rdev ,
192+ $st_size , $st_atime , $st_mtime , $st_ctime , $st_blksize , $st_blocks )
193+ = @_ ;
194194 return $stob ;
195- }
195+ }
196196
197197sub lstat :prototype(_) ($arg ) {
198198 populate(CORE::lstat $arg )
@@ -244,8 +244,8 @@ File::stat - by-name interface to Perl's built-in stat() functions
244244
245245=head1 DESCRIPTION
246246
247- This module's default exports override the core stat()
248- and lstat() functions, replacing them with versions that return
247+ This module's default exports override the core stat()
248+ and lstat() functions, replacing them with versions that return
249249"File::stat" objects. This object has methods that
250250return the similarly named structure field name from the
251251L<stat(2)> function; namely,
@@ -262,7 +262,7 @@ mtime,
262262ctime,
263263blksize,
264264and
265- blocks.
265+ blocks.
266266
267267As of version 1.02 (provided with perl 5.12) the object provides C<"-X" >
268268overloading, so you can call filetest operators (C<-f > , C<-x > , and so
0 commit comments